03-11-2009, 12:48 AM
boriel Wrote:By now -o2 only stripes variables!so you can delay using it.
Parsing accessed labels from the asm layer back to the compiler is a really really hard task! :?
What I've seen with GNU C an others is to declare variables in a way that tell the compiler no to optimize them (for example, "volatile" in C or something like that).
See here an example for the GNU C compiler, and some problems (warning, too technical, it's just an example). So it's not a trivial task. :?
It is not trivial, but leaving declaration to the user may be a good way
Code:
DeclareL _source
Quote:The first new issue of "SPC Ressurection" is not yet out (because the previuus editor was unable to continue his work for one year), so there is a new editor to continue the work (me). The magazine is in german, but I will tell you the link when it is out. Planet release date: 1.7.2009, but the currently the editing is faster than I expected, so it will be probably be out much earlier. 50% of the current issue is already finished.Quote:By the way, I wrote a very positive article about the Compiler for a german fanzineThanks a lot! Do you have the URL?
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!