Re: Some Euphoria questions
- Posted by Robert Craig <rds at ATTCANADA.NET> Aug 17, 2000
- 620 views
David Cuny writes: > Oddly, you define constants (like BATCH), but never > reference them, and instead of calling it like: > > _0cycles = _0cycles + BATCH; > > you optimize it away: > > _0cycles = _0cycles + 50; Good point. Easy to fix. The following statements have now been eliminated from main$.c: _0BATCH = 50; _0BENCH_TIME = 15; _0SIZE = 500; _0ON = 1; _0OFF = 0; _0SCREEN = 1; The declarations of these symbols in init$.c and main$.h have also been eliminated. If a Euphoria constant symbol is set to an integer literal (like they usually are) I no longer emit any declarations or code for it. I just plug in the numeric value as needed. When a constant is set to a more complex expression I still have to emit a declaration plus some code to evaluate the expression. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com