flat assembler
Message board for the users of flat assembler.

Index > Projects and Ideas > 64-bit Forth using fasm/ELF64

Author
Thread Post new topic Reply to topic
rrq



Joined: 17 May 2021
Posts: 2
rrq 31 Jul 2021, 23:38
This is more of an announcement than dropping an idea, but anyhow:

I very recently "discovered" the charm of FASM, when, out of general curiosity, I looked into jonasforth hoping to learn something about the dark art of UEFI programming. However I was more taken by FASM (than UEFI), and as a result I started this toy project "rrqforth" to learn more.

"rrqforth" is a reasonably complete 64-bit Forth interpreter as an ELF64 static binary developed on and for Linux. In this context it's kind of an illustration of what a FASM-beginner might do without getting bogged down into ontological concerns around data representation (since Forth doesn't really do data abstraction).

Some people might be interested in the "utility tool", fas2txt.lsp, which processes the .fas file that is generated by the fasm compiler into a text file representing the core image of the executable. That text file was very useful when debugging (using gdb) as it associates the core image addresses with the source line(s) for the code layout, whether it's from a macro or an included file etc. I used newlisp for fas2txt.lsp because I find this to be a quite handy high-level scripting language for low-level data manipulation.

enjoy
Post 31 Jul 2021, 23:38
View user's profile Send private message Reply with quote
pabloreda



Joined: 24 Jan 2007
Posts: 116
Location: Argentina
pabloreda 02 Aug 2021, 13:59
Nice to see another forth!

thank's fpr sharing
Post 02 Aug 2021, 13:59
View user's profile Send private message Visit poster's website 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.