Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.compilers    |    Compiler construction, theory, etc. (Mod    |    2,753 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 827 of 2,753    |
|    Sandeep Dutta to All    |
|    Re: Assembly code to 3-address code(IR).    |
|    19 Oct 06 11:16:22    |
      From: niktechc@niktech.com              Hi Dave,              > I'm finding a way to transfer the ARM assembly code into the       > 3-address code (Intermediate code).       > Does anyone has any idea?              This is not that difficult for a typical load/store RISC architecture.       You will need to keep track of the stack, and of arguments being passed in.       ARM has some additional challenges,              *) Almost all instructions can have conditional postfixes , this means       either your 3-address intermediate form have to have them as well, or       you would need to translate them into if-then-else.              *) The PC (R15) can be the destination in many instructions which means       implied branches              *) The last operand can be shifted or rotated, again this can be       represented in your IR or has to be split into two (with a temp       variable).              Hope that helps.              Sandeep       http://www.niktech.com              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca