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 > Sun Solaris

Author
Thread Post new topic Reply to topic
Chewy509



Joined: 19 Jun 2003
Posts: 297
Location: Bris-vegas, Australia
Sun Solaris
Hi Guys,

I have fasm v1.67.21 running fine on Sun Solaris Express x64 (aka Solaris 11 on AMD64).

To get fasm working on Solaris:
Download the libc version
$ gunzip fasm.tar.gz
$ tar -xf fasm.tar
$ cc -o fasm ./fasm/fasm.o
$ su
# cp fasm /usr/sfw/bin
# exit

Note: Use the Sun Compiler to link, and not gcc or ld directly. Sun's Compiler notes that the executable uses FPU, while gcc and ld don't...
Post 28 Oct 2007, 07:19
View user's profile Send private message Visit poster's website Reply with quote
Chewy509



Joined: 19 Jun 2003
Posts: 297
Location: Bris-vegas, Australia
Also when linking with Sun's libc,

stdin = &__iob[0];
stdout = &__iob[1];
stderr = &__iob[2];

or for us:

mov rax, __iob
mov [stdin], rax
mov rax, __iob+128
mov [stdout], rax
mov rax, __iob+256
mov [stdout], rax

And Sun uses the SYSV for x86-64 ABI... (Same as Linux and *BSD).
Post 04 Nov 2007, 23:33
View user's profile Send private message Visit poster's website Reply with quote
Chewy509



Joined: 19 Jun 2003
Posts: 297
Location: Bris-vegas, Australia
PS. The 64bit SYSV ABI is found here: http://www.x86-64.org/documentation/abi-0.98.pdf
Post 05 Nov 2007, 04:54
View user's profile Send private message Visit poster's website Reply with quote
dogman



Joined: 18 Jul 2013
Posts: 114
Thanks for your posts I'll try building this later on S10.
Post 23 Jul 2013, 13:58
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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.