flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Explanation needed |
Author |
|
Tomasz Grysztar 13 Dec 2004, 12:58
The # symbol is processed when defining the "enable_callmacroses" macro, so inside the "callmacroses" macro you get the:
Code: _macro_ line, instead of Code: _macro#_ which is what you want. In order to get the correct line in definition of "callmacroses" macro, put this line in the "enable_callmacroses": Code: _macro\#_ Last edited by Tomasz Grysztar on 12 Jun 2005, 09:30; edited 1 time in total |
|||
13 Dec 2004, 12:58 |
|
IronFelix 13 Dec 2004, 13:33
Thank you very much, Privaliv. And excuse me, please, for not paying enough attention to your FASM programmers manual (by the time I read your answer I had already found explanation in manual). I want to use this trick in creating macroses for OOP with multiple inheritance. To tell the truth, I has already written such macroses but in another way, and it takes a lot of time for compilation. Especially it is when I declare classes with 3 or 4 levels of inheritance or with multiply inheritance. I think that when I rewrite my macroses with useng this trick, they will be compiled faster, but I have suggestion: in the source code of FASM I found that such function as VirtualAlloc is used for memory allocation (I speak about FASM fo Win32), and this function is very slow. Is it possible to replace this function with faster one (HeapAlloc or LocalAlloc),of course,if it isn't hard for you,Privalov?
Thanks again for your explanation. _________________ Flat Assembler is the best! |
|||
13 Dec 2004, 13:33 |
|
f0dder 13 Dec 2004, 14:18
Doesn't FASM do it's memory allocation once, grabbing a whole big block of memory and then managing that block itself? In that case, VirtualAlloc is plenty fast, and preferable to the other memory allocation methods.
|
|||
13 Dec 2004, 14:18 |
|
pelaillo 13 Dec 2004, 18:09
Yes, it does a single one allocation.
The explanation could be a massive text substitution due to deep nested macros. |
|||
13 Dec 2004, 18:09 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.