flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > Empty sections

Author
Thread Post new topic Reply to topic
daluca



Joined: 05 Nov 2005
Posts: 86
daluca 30 Dec 2007, 18:30
Code:

format ms coff

    


1 passes, 82 bytes.

Code:

format ms coff
section 'data' data readable writeable

    


1 passes, 82 bytes.

Code:

format ms coff
section 'data' data readable writeable
section 'data' data readable writeable

    


1 passes, 140 bytes

Code:

format ms coff
section 'data' data readable writeable
section 'data' data readable writeable
section 'data' data readable writeable
section 'data' data readable writeable
section 'data' data readable writeable
section 'data' data readable writeable

    


1 passes, 372 bytes.


is there any way to make fasm not to generate sections that are empty?
thanks.
Post 30 Dec 2007, 18:30
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4352
Location: Now
edfed 30 Dec 2007, 18:39
don't code empty sections...
Post 30 Dec 2007, 18:39
View user's profile Send private message Visit poster's website Reply with quote
daluca



Joined: 05 Nov 2005
Posts: 86
daluca 30 Dec 2007, 18:45
is there any way to make fasm ignore sections that are empty?
thanks.
Post 30 Dec 2007, 18:45
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 30 Dec 2007, 19:14
Quote:
is there any way to make fasm ignore sections that are empty?
thanks.

I think it would be very easy to add, but there is no reason to add it.

So, your answer is no.
Post 30 Dec 2007, 19:14
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 30 Dec 2007, 19:34
fasm usually takes everything very literally - it assumes that since you wrote it, you meant it (to generate empty section).

However it may be possible to write "section" macro that would do this for you.
Post 30 Dec 2007, 19:34
View user's profile Send private message Visit poster's website Reply with quote
daluca



Joined: 05 Nov 2005
Posts: 86
daluca 31 Dec 2007, 01:29
thanks: i will try with macros then.
Post 31 Dec 2007, 01:29
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.