flat assembler
Message board for the users of flat assembler.

Index > Unix > fasm for NetBSD 3.1/i386

Author
Thread Post new topic Reply to topic
jb



Joined: 26 Mar 2007
Posts: 5
Location: Holland
jb 17 Apr 2007, 05:54
This archive can be used to create a statically linked, libc-free version of fasm for NetBSD 3.1. This work is based on my earlier posts here.

Files

fasm
fasm/source
fasm/source/NetBSD
fasm/source/NetBSD/system.inc
fasm/source/NetBSD/note.inc
fasm/source/NetBSD/bsd.inc
fasm/source/NetBSD/fasm.asm
fasm/source/tables.inc
fasm/source/formats.inc

Bootstrap procedure

#untar the Unix/libc fasm archive
tar xzf fasm-1.67.tar.gz
#untar the files listed above on top of this tree
tar xzf fasm-netbsd-1.67.tar.gz
cd fasm
#regular libc fasm
cc -o fasm1 fasm.o
cd source/libc
../../fasm1 fasm.asm
#libc fasm that can handle "segment note"
#using modified files tables.inc, formats.inc
cc -o fasm2 fasm.o
cd ../NetBSD
#libc-free NetBSD fasm
../libc/fasm2 fasm.asm fasm3
#check if it can reproduce itself
chmod +x fasm3
./fasm3 fasm.asm
cmp fasm3 fasm && echo 'fasm ok'

Additional tests

Both libc/fasm.o and Linux/fasm can be reproduced, but only after replacing the backquotes using:
perl -p -i -e 's,\\,/,' fasm.asm


Description: fasm-netbsd-1.67.tar.gz
Download
Filename: fasm-netbsd-1.67.tar.gz
Filesize: 23.9 KB
Downloaded: 975 Time(s)

Post 17 Apr 2007, 05:54
View user's profile Send private message 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.