Hello everyone.
i'm currently trying to build an executable using GForth's built in assembler, but apparently it, and most of the assemblers that are written in forth only
assemble the code to be used as a word. Is it possible to somehow redirect the assemblers or something similar to write the machine code to an allocated
chunk of memory instead of the forth vocabulary?
Hello everyone.
i'm currently trying to build an executable using GForth's built in assembler,
but apparently it, and most of the assemblers that are written in forth only assemble the code to be used as a word. Is it possible to somehow redirect the
assemblers or something similar to write the machine code to an allocated chunk of memory instead of the forth vocabulary?
Hi Krzysztof!
Stephen Pelc's 64-bit VFX Forth not only has the best code generator
on the market, but also the best assembler / disassembler due to the
syntax close to Intel syntax, as well as adding encoding when
disassembling in the comment, which allows you to use the result as a
source. And it's made available to the community for free if you don't
intend to make money.
mov rax, rbx<NIP>
Cheers!
Hello everyone.
i'm currently trying to build an executable using GForth's built in assembl= >er, but apparently it, and most of the assemblers that are written in forth=
only assemble the code to be used as a word.
Is it possible to somehow red=
irect the assemblers or something similar to write the machine code to an a= >llocated chunk of memory instead of the forth vocabulary?
You may find this easier to do with a native Forth system such as VFX.
I think you are asking for a Forth assembler to just lay down code
instead of laying down some minimal Forth and adapting the Forth to
the application. Typical from what I have seen is the latter and have
seen comments from noted experts as why anyone would want the former. Whatever, I'm not interested in such a debate.
Hello everyone.something similar to write the machine code to an allocated chunk of memory instead of the forth vocabulary?
i'm currently trying to build an executable using GForth's built in assembler, but apparently it, and most of the assemblers that are written in forth only assemble the code to be used as a word. Is it possible to somehow redirect the assemblers or
You may find this easier to do with a native Forth system such as VFX.
But from what I see on „download” page VFX is family of „hosted” Forths,
not „native” at all?
Friday, July 29, 2022 at 17:20:06 UTC+2 S Jack wrote:
I think you are asking for a Forth assembler to just lay down codeI'm aiming to write a metacompiled forth in a combination of forth and assembly,
instead of laying down some minimal Forth and adapting the Forth to
the application. Typical from what I have seen is the latter and have
seen comments from noted experts as why anyone would want the former. Whatever, I'm not interested in such a debate.
which the goal of is it being a minimal bootable forth for multiple platforms.
One can't simply make an executable without any assembly.
Friday, July 29, 2022 at 17:20:06 UTC+2 S Jack wrote:
I think you are asking for a Forth assembler to just lay down codeI'm aiming to write a metacompiled forth in a combination of forth and assembly, which the goal of is it being a minimal bootable forth for multiple platforms. One can't simply make an executable without any assembly.
instead of laying down some minimal Forth and adapting the Forth to
the application. Typical from what I have seen is the latter and have
seen comments from noted experts as why anyone would want the former. Whatever, I'm not interested in such a debate.
Hello everyone.something similar to write the machine code to an allocated chunk of memory instead of the forth vocabulary?
i'm currently trying to build an executable using GForth's built in assembler, but apparently it, and most of the assemblers that are written in forth only assemble the code to be used as a word. Is it possible to somehow redirect the assemblers or
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 504 |
Nodes: | 16 (2 / 14) |
Uptime: | 252:05:15 |
Calls: | 9,892 |
Calls today: | 1 |
Files: | 13,794 |
Messages: | 6,294,508 |