flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Enko 28 May 2011, 22:27
My guess it will be a great future.
But other guess is that the less global variables is used the best is for the project. And local variables are destroyed after the proc is done. But it should be greate to see: "WARNING: szAlertMsg is declared but not used" and again, someone will get angry, becous they don't like to see those warnings. Assembly programers have not quite the same tastes as the visual cpp ones ![]() I used to get tired of the messages: Warning the XXX functions is deprecated, use YYY. The hell!!!! |
|||
![]() |
|
ouadji 28 May 2011, 22:35
Quote: the less global variables is used the best is for the project. the use of global variables is often required. |
|||
![]() |
|
ctl3d32 28 May 2011, 23:29
fasm is perfect to me the way it is. I think that, for big projects, the most important feature is organization, and it's up to us.
|
|||
![]() |
|
LocoDelAssembly 29 May 2011, 00:26
Not too hard to do with macros, in fact, "proc" and "import" macros makes use of this to decide if the code/api is worth to be included in the output file or not (by means of "if used proc_name/api_name").
And since sometimes the warnings are wrong (because for instance perhaps your code accesses a variable but using a pointer relative to some other variable), you could use "dummy = variable_wrongly_reported" so fasm will detect the variable is used and hence "used" will report TRUE. |
|||
![]() |
|
JohnFound 29 May 2011, 08:26
Fresh have these features, although "not used variable" is not a clear concept. FASM operates with labels that might or might not to be a "variable".
Anyway, in my understanding, Tomasz prefer to keep FASMW as small and simple as possible. For me, Fresh is the project, that is aimed to implement such "high level" IDE features. If someone wants to help - the project is open. |
|||
![]() |
|
ouadji 29 May 2011, 09:57
for me, this should not be a feature of the IDE, but of the compiler. Code: fasm toto.asm /uv |
|||
![]() |
|
JohnFound 29 May 2011, 10:04
Of course it is function of the compiler, but the comfortable visualization of the results is function of the IDE. FASM have the feature even now - the "used" operator:
Code: if ~used myvar display "My var is not used" end if |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.