flat assembler
Message board for the users of flat assembler.
Index
> Windows > Multiple Sections in one EXE? *SOLVED* |
Author |
|
bitshifter 28 Oct 2008, 01:20
These macro's are defined in WIN32AX.INC and as far as i can tell, they are only to provide an easy way to declare a section.
Code: macro .data { section '.data' data readable writeable } macro .code { section '.text' code readable executable } I looks like multilple sections of the same type can be defined, but i dont think that fasm will group them together (like a linker does) so your file size will probably increase due to each sections alignment width. If i am wrong, please kick me in the nuts... |
|||
28 Oct 2008, 01:20 |
|
LocoDelAssembly 28 Oct 2008, 02:05
Quote:
Exactly there is no such grouping. And you don't only have to account for the alignment but for the extra space required to define the section inside the PE too. |
|||
28 Oct 2008, 02:05 |
|
bitRAKE 30 Oct 2008, 19:40
The best way I've found thus far is to create object files and link them together. Linkers have a policy used to join sections of same, or similar names. Matt Pietrek explains briefly (just past Figure 2). This allows functionality to be encapsulated within a single source file (and typically a definition of the interface - include file).
Better tools to navigate large sources is required to realize the FASM single source file dream, imho. _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
30 Oct 2008, 19:40 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.