|problems with "reordered code" using GNU, PPC, vxWorks firstname.lastname@example.org (2003-03-24)|
|Re: problems with "reordered code" using GNU, PPC, vxWorks email@example.com (2003-03-30)|
|Re: problems with "reordered code" using GNU, PPC, vxWorks firstname.lastname@example.org (2003-03-30)|
|Re: problems with "reordered code" using GNU, PPC, vxWorks email@example.com (Michael Meissner) (2003-03-30)|
|From:||firstname.lastname@example.org (Wolfgang Schulze)|
|Date:||24 Mar 2003 21:54:31 -0500|
|Keywords:||optimize, C, question|
|Posted-Date:||24 Mar 2003 21:54:31 EST|
I´m using a PPC under vxworks, Ansi C, GNU. After compilation my code
is reordered for optimisation. I want to have my code optimized by the
compiler, but in some source code I need to have the exact instruction
order as I write in my source code.
After I have disassembled the compiled code, I register that nearly
all c-code lines are mixed (reordered). For the MIPS there is a switch
"noreorder". Is there a similar switch for the PPC architecture?
What have I to do to avoid unwished code reordering during otimisation
If anyone can help me, please do!
[Isn't that what volatile declarations are supposed to do? -John]
Return to the
Search the comp.compilers archives again.