flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > Little problem with Variable.inc |
Author |
|
Alan Illeman 16 Mar 2005, 23:39
Why don't you change all the '?' in variable.inc to '0' thereby
initialising all the variables to zero? I always initialise my variables. Cheers, Alan |
|||
16 Mar 2005, 23:39 |
|
MCD 17 Mar 2005, 09:31
Alan Illeman wrote: Why don't you change all the '?' in variable.inc to '0' thereby He could do this, but this would require additional executable size. Another solution I would suggest is to simply separate the "variables.inc" in an "iglobal" and an "uglobal" block (both in the same file) which will actually be placed into the executable in the main Fasm.asm or Fresh.asm file. _________________ MCD - the inevitable return of the Mad Computer Doggy -||__/ .|+-~ .|| || |
|||
17 Mar 2005, 09:31 |
|
JohnFound 17 Mar 2005, 10:26
Alan Illeman, actually Windows zeroes undefined variables. Sometimes, it is not very usefull to initialize the variables, because its value is not known at the design time, but have to be computed in run time.
Actually in the latest FASM 1.60, mentioned problem is solved, so... Regards. |
|||
17 Mar 2005, 10:26 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.