Re: Writing an assembler
Robert Craig wrote:
> * assume initially that all branches can be short
Thanks for replying. It is interesting that you and Tomasz Grysztar (author of
fasm) went that way whereas I instinctively thought "assume long".
Now I've thought about it a bit more, (thanks to everyone who responded) I think
I might try three-address-code-plus-length-sib-modrm-etc, but use simple
subscripts rather than offsets or addresses in the TAC pointing to a secondary
sequence with actual addresses.
Mind you, now that I've thought about it a bit more, I've drastically scaled
down what it is I actually want to achieve here
)
CChris wrote:
>create a record per instruction.
Hmm, perhaps my attempts to avoid just that befuddled me ;)
mic _ wrote:
> have fun writing the linker. ... iirc it got pretty ugly ...
I know rva's are tricky, but quite doable. I'll have a look at nqa, ta.
Rob wrote:
>I later learned that "Abandon Hope..." was the inscription
>at the gates of Hell, according to Dante's Divine Comedy.
I first came across that in "adventure" on a pdp-11 unix box, I think just after
getting through the "maze of twisty little passages, all alike" ...
... and I definately dropped a few grade points that term.
Regards,
Pete
|
Not Categorized, Please Help
|
|