Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
About constants
#10
boriel Wrote:By now -o2 only stripes variables! Tongue 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:
Quote:By the way, I wrote a very positive article about the Compiler for a german fanzine
Thanks a lot! Do you have the URL?
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.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)