flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
JohnFound
No. At least there is no general way.
But IMHO, you wrongly ask here for a means, not for an aims. What you actually want to achieve? Probably there is pretty good solution in FASM style. ![]() Regards. |
|||
![]() |
|
iklin
madmatt,
for data section there is a good way to use 'globals.inc' from Freshlib ![]() ![]() ![]() |
|||
![]() |
|
bogdanontanu
any linker can do that
![]() |
|||
![]() |
|
madmatt
The reason I ask is because when working on the .dll library for the Windows game programming for dummies examples, I had multiple .data sections, and when I combined them into a single one it saved me ~3kb from a 55kb sized file. So that is why I ask.
MadMatt |
|||
![]() |
|
Tomasz Grysztar
Check out these threads:
http://board.flatassembler.net/topic.php?t=2330 http://board.flatassembler.net/topic.php?t=432 |
|||
![]() |
|
JohnFound
madmatt wrote: The reason I ask is because when working on the .dll library for the Windows game programming for dummies examples, I had multiple .data sections, and when I combined them into a single one it saved me ~3kb from a 55kb sized file. So that is why I ask. As iklin said, "globals.inc" was writen exactly with purpose to solve the problems with data definitions, spreaded in the source. It automatically order your data definitions to put undefined data at the end. You can use "globals.inc" with every source, it is not depending on FreshLib. Regards. |
|||
![]() |
|
madmatt
Looked at the message threads, and see some macro's there. So these macro's will gather all my data sections into one data section when I use them?
|
|||
![]() |
|
iklin
madmatt wrote: Looked at the message threads, and see some macro's there. So these macro's will gather all my data sections into one data section when I use them? Yes. Use Code: uglobal ... endg iglobal ... endg in any place of sources and Code: IncludeAllGlobals in place there you want your data.
|
|||||||||||
![]() |
|
madmatt
All Right, downloaded the macros, will give them a try shortly.
Thanks to everyone, MadMatt |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.