flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
mindcooler
Due to the rise in posts about debugging symbols, I finished my own two-click system for creating exported symbol debug binaries, briefly described here: http://board.flatassembler.net/topic.php?t=13843
As I use custom includes, I don't know how well the idea transfers to the usual includes. Basically it consists of a program to extract suitable symbols from a .fas file, and a batch script: fas.bat wrote: @echo off fas.sed wrote: /<exports>/ { ◊ I first generate the .fas file from the assembly file. ◊ Then, from the .fas file I output those symbols that:
are used have the "optimization adjustment is applied to" (whatever that means) are not virtual/relative are not anonymous labels ◊ I make a copy of the source file, set it to debug mode. ◊ Unwanted symbols are pruned: symbols that start with a dot, contain ".iat", or is "bss". ◊ The resulting string - an export macro invocation - is inserted into the source and compiled The result is a good collection of exported symbols that is useful in debugging: ![]() _________________ This is a block of text that can be added to posts you make. |
|||
![]() |
|
revolution
Can you please explain what sed is? It is your own program? My windows system seem to be missing it.
|
|||
![]() |
|
bubach
my best guess would be:
Quote: Sed (streams editor) isn't really a true text editor or text processor. Instead, it is used to filter text, i.e., it takes text input and performs some operation (or set of operations) on it and outputs the modified text. Sed is typically used for extracting part of a file using pattern matching or substituting multiple occurances of a string within a file. http://gnuwin32.sourceforge.net/packages/sed.htm |
|||
![]() |
|
mindcooler
Yes I use sed from http://unxutils.sourceforge.net/.
_________________ This is a block of text that can be added to posts you make. |
|||
![]() |
|
rugxulo
revolution wrote: Can you please explain what sed is? It is your own program? My windows system seem to be missing it. That's because Windows is not UNIX nor POSIX and doesn't try to be. I honestly suspect you're being facetious as sed is fairly common (though admittedly very niche). http://en.wikipedia.org/wiki/Sed http://www.gnu.org/software/sed/ http://www.pement.org/sed/ http://sed.sourceforge.net/ http://lvogel.free.fr/sed.htm http://www.exactcode.de/site/open_source/minised/ |
|||
![]() |
|
rugxulo
|
|||
![]() |
|
mindcooler
I've tweaked my system somewhat to include more useful symbols and filter more less useful ones.
http://files.sys5.se/fas.asm fas.bat wrote: @echo off ![]() _________________ This is a block of text that can be added to posts you make. |
|||
![]() |
|
XQuader
Where is compiled version of fas.asm?
Can someone share it? Or share pe.inc (needed to compile it from fas.asm) PS. Sorry for bad English |
|||
![]() |
|
mindcooler
I can try to make it a bit more general than it is now; it has a lot of hardcoded paths and stuff as it is now.
|
|||
![]() |
|
mindcooler
Made a bundle: http://files.sys5.se/fas.zip
You need to change two lines in the fas.bat file, then supply fas.exe the parameter fas.asm to test the system out. _________________ This is a block of text that can be added to posts you make. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.