|Assembly code to 3-address code(IR)... email@example.com (s88) (2006-10-03)|
|Re: Assembly code to 3-address code(IR)... firstname.lastname@example.org (Sandeep Dutta) (2006-10-19)|
|From:||"Sandeep Dutta" <email@example.com>|
|Date:||19 Oct 2006 11:16:22 -0400|
|Posted-Date:||19 Oct 2006 11:16:22 EDT|
> 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
*) 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
Hope that helps.
Return to the
Search the comp.compilers archives again.