flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > How to get the corresponding offset of a line? |
Author |
|
Tommy 24 Aug 2003, 18:26
I mean something like this (implemented with macros and NOT very practical/handy to use )...
Well, so long! Tommy
|
|||||||||||
24 Aug 2003, 18:26 |
|
Tomasz Grysztar 24 Aug 2003, 20:29
As I have written somewhere else, the changes I've made to the fasm's core in the 1.48 release now allow this. My intention was to make it for the source-level debugger that was planned to be included in the FASMW interface since its first release (that's why it's still not even 1.0). But it can also be used for the purpose you're talking about, I was thinking even about the listing feature (third - optional - file name in the command line). I'll try to make soon some demonstration how to modify interface to make use of that new core's feature (but if I implement the listing, I'll probably make it the part of formatter module).
|
|||
24 Aug 2003, 20:29 |
|
pelaillo 25 Aug 2003, 06:41
What a good news: the source level debugger !!
|
|||
25 Aug 2003, 06:41 |
|
Tommy 25 Aug 2003, 07:44
Good news Privalov! I look forward to your demonstration!
Source-level debugger would be like a dream came true Tommy |
|||
25 Aug 2003, 07:44 |
|
Tomasz Grysztar 27 Aug 2003, 19:31
Here's the first experimental version of fasm with the new listing engine. There is a new include file in the source directory - listing.inc, and it contains procedures that should create listing from the given line numbers and file offsets (you can specify the file name for the listing file as a third parameter in the command line), but with FASMW interface version these routines will be replaced with ones that will generate the appriopriate data structure for the source-level debugger.
Attachment is now obsolete, so has been removed. Last edited by Tomasz Grysztar on 30 Aug 2003, 14:32; edited 1 time in total |
|||
27 Aug 2003, 19:31 |
|
Tommy 28 Aug 2003, 05:33
Good start! I'm gone for some days now, but I'll check it out closer when I return!
So long! Take care! Keep up the good work! Regards, Tommy |
|||
28 Aug 2003, 05:33 |
|
Tomasz Grysztar 30 Aug 2003, 14:42
I have posted version with finished listing feature in the Main forum, and I've also noticed that it won't be really useful for source-level debugger project, as this listing bases on file offsets, and some data structures (like uninitialized data, or anything defined inside the virtual blocks) have no corresponding data in the output file. For the debugger we will need to have addresses in memory, not in file, and as it's hard to make in general case, we will have to make it for PE formatter only.
|
|||
30 Aug 2003, 14:42 |
|
Tommy 01 Sep 2003, 09:45
Both oportunities should be available... (as it is right now, and built-in in the PE formatter)
|
|||
01 Sep 2003, 09:45 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.