flat assembler
Message board for the users of flat assembler.
Index
> Linux > How to convert some .c source code into .asm? |
Author |
|
f0dder 24 Mar 2004, 23:41
As far as I know (which might be wrong), termios is more than just syscalls, but a whole bunch of library stuff. You could use fasm to assemble to elf, the use the GNU ld linker to link with the proper libraries...
Then again, I might be confusion termios stuff with some of the more fancy terminal stuff. Under any circumstance I would advice against using syscalls directly - wrap them up in macros or (my personal preferance), create some small wrapper functions for the syscalls. It makes code a lot clearer, and even if you use wrapper functions, the overhead of a bunch of pushes and a call will be entirely lost compared to r3->r0->r3 switching. I think bazik posted some linux syscall macros, either here or on the win32asm board. |
|||
24 Mar 2004, 23:41 |
|
gorshing 26 Mar 2004, 22:10
f0dder wrote: I think bazik posted some linux syscall macros, either here or on the win32asm board. Yes he did, but aaro and jInuQ are making a standard library for fasm, which will work on linux or windows. http://board.flatassembler.net/topic.php?t=1107 _________________ gorshing |
|||
26 Mar 2004, 22:10 |
|
f0dder 27 Mar 2004, 09:27
Sounds like a good initiative...
|
|||
27 Mar 2004, 09:27 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.