flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > listing for fasm 1.67

Goto page 1, 2  Next
Author
Thread Post new topic Reply to topic
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7715
Location: Kraków, Poland
Tomasz Grysztar
The attachment contains the updated version of the listing extension, which can be applied to all the latest releases - just unpack the sources to the same directory where one of the official fasm releases resides.


Description: listing extension for flat assembler
Download
Filename: LISTING.ZIP
Filesize: 141.54 KB
Downloaded: 436 Time(s)



Last edited by Tomasz Grysztar on 15 Nov 2008, 14:36; edited 1 time in total
Post 05 Aug 2007, 18:05
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1901
DOS386
Nice. Smile I wonder why this does need an external hack - couldn't it be "official" part of FASM versions ?
Post 06 Aug 2007, 06:35
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo
Did 1.67.24 break this? (Seems so.)

Quote:

flat assembler version 1.67.24 (905249 kilobytes memory)
..\..\errors.inc [7]:
push _out_of_memory
error: undefined symbol '_out_of_memory'.
Post 06 Dec 2007, 00:22
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
yes, error handling was changed in 1.67.24
Post 06 Dec 2007, 00:30
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7715
Location: Kraków, Poland
Tomasz Grysztar
Yeah, I remember about it - I'm going to update this extension again soon.
Post 06 Dec 2007, 04:24
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1901
DOS386
.

> I'm going to update this extension again soon.

But why not make it part of the "official" version ?

So we would have 4 commandline switches - well, this should be really final then Laughing

My other wish is the /* blah blah */ thing - maybe the time is ready for this after the "most evil" "-D" has been added Laughing

EDIT (2008-12-04) - 4 switches done in 1.67.29 Smile


Last edited by DOS386 on 04 Dec 2008, 07:55; edited 2 times in total
Post 06 Jan 2008, 00:32
View user's profile Send private message Reply with quote
IceStudent



Joined: 19 Dec 2003
Posts: 60
Location: Ukraine
IceStudent
Yes, it would be nice.. I updating a special builds usually, but it is better to move it to the official distributive: preprocessing, listing and symbol dump features.
Post 06 Jan 2008, 19:45
View user's profile Send private message Reply with quote
AsmER



Joined: 25 Mar 2006
Posts: 64
Location: England
AsmER
Very usefull tool indeed. Helped me out with understanding how macroinstructions work and how to improve/fix them.

As for having it in original fasm distribution: Definatelly YES
Doesn't have to be built in fasm or IDE though, having it as a separate file is absolutelly fine
[Mr Grysztar doesn't have to waste time on modifying fasm/IDE code to have another command line switch for something that works perfectly as it is atm]

_________________
;\\ http://theasmer.spaces.live.com \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Post 21 Apr 2008, 22:09
View user's profile Send private message Reply with quote
siva



Joined: 27 Aug 2006
Posts: 10
siva
Hello,

I used the above LISTING.ZIP and incorporated the changes into fasm 1.67.27 source code and also included the symbol dump fix for linux.

original listing thread

symbol dump thread

Hope it helps,


Description:
Download
Filename: fasm-listing-symboldump-1.67.27.tgz
Filesize: 443.11 KB
Downloaded: 229 Time(s)

Post 11 Aug 2008, 12:41
View user's profile Send private message Reply with quote
siva



Joined: 27 Aug 2006
Posts: 10
siva
Hello,

The attached tar file includes:

1. fasm 1.67.27 source
2. changes in the above LISTING.ZIP applied to the 1.67.27 source
3. symbol dump fix applied to the 1.67.27 source
4. fasmprep fix to enable fasm preprocessed output when -e option is used applied to the 1.67.27 source.

Hope it helps,


Description:
Download
Filename: fasm-listing-symboldump-preprocessor-1.67.27.tgz
Filesize: 542.21 KB
Downloaded: 223 Time(s)

Post 11 Aug 2008, 13:42
View user's profile Send private message Reply with quote
siva



Joined: 27 Aug 2006
Posts: 10
siva
Hello,

The executable in the above LISTING.ZIP does not create a listing file when the fix directive is used in the source.

For example, if my test file has the below 2 lines, then the listing file is not being created:
def fix DEFINE_FORTH_AND_MACRO_DICTIONARY_WORD
enddef fix } END_DEFINE_FORTH_AND_MACRO_DICTIONARY_WORD

The listing file is created when the above 2 lines are commented. It does not matter whether the above code is used or not. I also noticed that without the above 2 lines, the fasm executable does one extra pass also.

Any thoughts, please?

Thanks
Post 11 Aug 2008, 19:57
View user's profile Send private message Reply with quote
siva



Joined: 27 Aug 2006
Posts: 10
siva
I guess listing does not work with 'fix' as the fix directive is deprecated??

Rewriting the code with the match directive resolved the issue.

Sorry for the bother..
Post 11 Aug 2008, 20:17
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Quote:

I guess listing does not work with 'fix' as the fix directive is deprecated??

I think it is not, at least it was never said explicitly and I see no reasons for deprecate it.
Post 11 Aug 2008, 20:31
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7715
Location: Kraków, Poland
Tomasz Grysztar
I have updated the attachment with version that works with the latest releases (after the changes made to interfaces in 1.67.24).
Post 06 Nov 2008, 18:13
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1901
DOS386
Tomasz Grysztar wrote:
updated the attachment with version that works with the latest releases (after the changes made to interfaces in 1.67.24)


Nice Smile ... but can't it become part of main release ?

_________________
Bug Nr.: 12345

Title: Hello World program compiles to 100 KB !!!

Status: Closed: NOT a Bug
Post 07 Nov 2008, 07:52
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7715
Location: Kraków, Poland
Tomasz Grysztar
For official release it was planned to add feature of outputting fasm's own debug info format, as a separate versatile file, from which then various informations would be extracted with separate tools. For example you'd have a listing generator, that would create listing using info from that debug info file.

That was the plan, however I did not manage to make it this year. Do I still have a chance? Wink
Post 07 Nov 2008, 08:11
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1901
DOS386
Tomasz Grysztar wrote:
For official release it was planned to add feature of outputting fasm's own debug info format, as a separate versatile file, from which then various informations would be extracted with separate tools. For example you'd have a listing generator, that would create listing using info from that debug info file. That was the plan, however I did not manage to make it this year. Do I still have a chance? Wink


WOW ... fast answer Smile)) So you consider this listing hack as temporary only to be obsoleted by a full DEBUG solution including listing ? I don't need the debug badly but it's the argument against using FASM as backend by HLL compilers ... so it seems needed Neutral
Post 07 Nov 2008, 08:17
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
I think that would be a good solution
Post 07 Nov 2008, 09:13
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7715
Location: Kraków, Poland
Tomasz Grysztar
As a kind of preview, I'm attaching the the draft documentation for the fasm's debug info format (called "fas").
I have already got fasm generating those files, but I still need some more testing, and I also want to write a few examples of external tools, that would extract various kinds of information from the "fas" files (like listing).

Of course, after I release the 1.67.29, this thread is going to become obsolete.
Post 10 Nov 2008, 22:57
View user's profile Send private message Visit poster's website Reply with quote
dead_body



Joined: 21 Sep 2005
Posts: 187
Location: Ukraine,Kharkov
dead_body
wau! Very unusual and interisting format. Waiting for examples Smile
Post 11 Nov 2008, 06:43
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page 1, 2  Next

< 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-2020, Tomasz Grysztar.

Powered by rwasa.