flat assembler
Message board for the users of flat assembler.
Index
> IDE Development > "uglobal" macro optimization |
Author |
|
JohnFound 10 Aug 2004, 19:57
Hi.
Some example? |
|||
10 Aug 2004, 19:57 |
|
vid 11 Aug 2004, 11:36
not tested, but should be somthing like this
Code: macro uglobal { virtual at ..UninitDataBuffer + ..UninitDataSize } macro endg { ..UninitDataSize = $-..UninitDataBuffer end virtual } macro DefineUninitData { ..UninitDataBuffer rb ..UninitDataSize } i was wrong with possibility of forward reference, it would require something like Code:
..TotalUninitDataSize = ..UninitDataSize
after last "endg". Connected with this - there could be a defined standard macro that will be presend at the end of source. I think it would be very useful, for example for things like this. |
|||
11 Aug 2004, 11:36 |
|
JohnFound 11 Aug 2004, 12:07
Hm, actually I can't see big difference... Now, at least, both initialized and uninitialised macroses are written in one style. Also I don't think it would be faster. Actually the "proc" macroses with nested macro definitions are faster than older one - with symbolic constants...
Regards. |
|||
11 Aug 2004, 12:07 |
|
vid 11 Aug 2004, 19:13
depends on number of assembling cycles, it takes one more cycle in some cases (it is forward refenced). Anyway, it would be best to test it under more environments.
I was just trying to help, if it is faster this way, then, of course, it would be best to keep it. |
|||
11 Aug 2004, 19:13 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.