flat assembler
Message board for the users of flat assembler.
Index
> High Level Languages > mixing c with fasm |
Author |
|
revolution 03 Apr 2009, 23:28
The way to achieve that is with the use of extrn/public and use a linker.
|
|||
03 Apr 2009, 23:28 |
|
LocoDelAssembly 03 Apr 2009, 23:28
Do you want to extract "file" functionality from fasm or getting the file contents from an assembly source which contains a "file" directive invocation somewhere?
|
|||
03 Apr 2009, 23:28 |
|
cthug 03 Apr 2009, 23:37
I want to have an asm file like:
format ELF file variable, "SOMEFILE" C File: int main() { printf("Variable: %s", variable); } compile with like: fasm test.asm test.o gcc main.c -c -o main.o gcc main.o test.o -o test NOTE: I wrote this quickly so it may not be correct |
|||
03 Apr 2009, 23:37 |
|
revolution 03 Apr 2009, 23:42
Put 'variable' as public in the fasm file and as extrn in the C file and rewrite the line as "variable: file 'SOMEFILE'".
|
|||
03 Apr 2009, 23:42 |
|
cthug 03 Apr 2009, 23:56
ty I shall test
|
|||
03 Apr 2009, 23:56 |
|
DOS386 05 Apr 2009, 03:23
Move to Linux or High Level Languages ?
|
|||
05 Apr 2009, 03:23 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.