flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > data and code section combining |
Author |
|
JohnFound 28 Jan 2005, 23:32
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. |
|||
28 Jan 2005, 23:32 |
|
iklin 29 Jan 2005, 06:20
madmatt,
for data section there is a good way to use 'globals.inc' from Freshlib It can be easily used. And I think in that way you can write your own macros for code sections Thanx JohnFound for this macros and for all Freshlib! |
|||
29 Jan 2005, 06:20 |
|
bogdanontanu 29 Jan 2005, 06:55
any linker can do that
|
|||
29 Jan 2005, 06:55 |
|
madmatt 29 Jan 2005, 10:43
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 |
|||
29 Jan 2005, 10:43 |
|
Tomasz Grysztar 29 Jan 2005, 11:23
Check out these threads:
http://board.flatassembler.net/topic.php?t=2330 http://board.flatassembler.net/topic.php?t=432 |
|||
29 Jan 2005, 11:23 |
|
JohnFound 29 Jan 2005, 11:28
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. |
|||
29 Jan 2005, 11:28 |
|
madmatt 30 Jan 2005, 01:27
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?
|
|||
30 Jan 2005, 01:27 |
|
iklin 30 Jan 2005, 10:26
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.
|
|||||||||||
30 Jan 2005, 10:26 |
|
madmatt 31 Jan 2005, 09:25
All Right, downloaded the macros, will give them a try shortly.
Thanks to everyone, MadMatt |
|||
31 Jan 2005, 09:25 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.