flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 19 Mar 2012, 09:37
Put all your uninitialised data at the end of the section. Note the different size of the following two:
Code: section '.data1' data readable writeable buf rd 800*600 buf2 rd 512*512 buf3 rd 512*512 db 'initialised data here will force all of the above into the exe file' section '.data2' data readable writeable db 'initialised data here will allow the below to be removed from the exe file' buf rd 800*600 buf2 rd 512*512 buf3 rd 512*512 |
|||
![]() |
|
bo 19 Mar 2012, 09:57
Thanks for the quick response revolution. It works perfectly. 3 mb condensed to 3 kb!
|
|||
![]() |
|
bzdashek 23 Mar 2012, 13:39
Why don't you allocate memory dynamically?
|
|||
![]() |
|
typedef 23 Mar 2012, 18:15
@bzdashek That works also.
![]() |
|||
![]() |
|
majidkamali1370 23 Mar 2012, 19:14
How to allocate memory dynamically?
(I use linux x86) |
|||
![]() |
|
bzdashek 23 Mar 2012, 19:47
@typdef That's a surprise indeed
![]() @majidkamali1370 here's some information you should probably check (in Linux forum): http://board.flatassembler.net/topic.php?t=3043 |
|||
![]() |
|
Goplat 24 Mar 2012, 01:47
bzdashek wrote: Why don't you allocate memory dynamically? |
|||
![]() |
|
bzdashek 24 Mar 2012, 07:50
Goplat wrote:
I'll take a note of that, thank you. |
|||
![]() |
|
badc0de 01 May 2012, 09:58
Code: ada_mo: times 88*88 dd 0 |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.