flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Unix > fasm for NetBSD 3.1/i386

Thread Post new topic Reply to topic

Joined: 26 Mar 2007
Posts: 5
Location: Holland

fasm for NetBSD 3.1/i386

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.



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
Filename: fasm-netbsd-1.67.tar.gz
Filesize: 23.9 KB
Downloaded: 94 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

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2018, Tomasz Grysztar.
Powered by rwasa.