![](https://secure.gravatar.com/avatar/e726143691e607ec32925f7ead38f864.jpg?s=120&d=mm&r=g)
13 Aug
2003
13 Aug
'03
5:06 p.m.
A general question in regards to "passing" registers to branch points. Here is what I would love to be able to do: .local rtn_addr load_addr[rtn_addr, ret_loc#] br[sub_func#] ret_loc#: .endlocal //...other code... .subroutine sub_func#: //does neat stuff rtn[rtn_addr] .endsub IE, I want to declare a variable->register mapping and then be able to use that same register in a subroutine. I've tried fooling around with the .subroutine structures assembly with no luck. Only if rtn_addr is live for the entire program does that work. Is there anyway to control live ranges when using subroutines, or will uca force one to waste a register by making it global? Thanks, Cy
7857
Age (days ago)
7857
Last active (days ago)
0 comments
1 participants
participants (1)
-
Cyrus Hall