flat assembler
Message board for the users of flat assembler.

Index > Linux > Multithreaded programming in FASM on Linux (+OpenGL)

Author
Thread Post new topic Reply to topic
MikeEI



Joined: 22 Dec 2010
Posts: 1
MikeEI
I'd like to code a multithreaded program in FASM via calling Linux syscall API in order to better understand what's going on under the hood (compared to higher level programming).

How do You work best with the Linux syscall API in FASM? Are there any import libraries (like MASM32/Windows) etc.? Is it feasable beyond "Hello World" examples and instructive?

Addon question:
How do You work best with the OpenGL API in FASM?

Thanks for any advice in advance.

BR
Post 22 Dec 2010, 21:22
View user's profile Send private message Reply with quote
cthug



Joined: 03 Apr 2009
Posts: 36
Location: /home/Australia
cthug
without linking to any external libraries(libc etc), you have to use the kernel syscalls directly. For a tutorial on how to call linux syscalls look here and for a reference on syscall numbers(x86 only) look here.

As for opengl, you would have to link to a library(eg. libMesaGL).

_________________
"There are only two industries that refer to their customers as 'users'." Edward Tufte
Post 22 Dec 2010, 22:45
View user's profile Send private message Visit poster's website 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-2020, Tomasz Grysztar.

Powered by rwasa.