flat assembler
Message board for the users of flat assembler.

flat assembler > Projects and Ideas > FASM as inline ASSEMBLY for GCC

Author
Thread Post new topic Reply to topic
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
Hi ASM-ers!

What do you think of the idea having the idea having FASM as an inline ASM compiler in GCC under Linux?

like:
Code:
FASM {
;fasm code
} FASM
    
Post 06 Dec 2011, 09:54
View user's profile Send private message Visit poster's website Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2910
Location: 0x77760000
then you'd need to configure the compiler to invoke fasm and tell it which is success and which is failure.

But why not just use the IA-Assembly keyword that lets you use IA-ASM under GCC ?
Post 06 Dec 2011, 10:05
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3476
Location: Bulgaria
Well, I never use C, so it is not important for me.
On the other hand - it will make the great FASM syntax for the Linux and C programmers - so it would be great. Smile
Post 06 Dec 2011, 10:20
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
It would be kind of simple if we don't need the address of variables for example, just hack the binary in the C-code at location.
Integration makes this problem more difficult.
I believe it should be possible with at least 2 passes and a little multiplexing.
Post 06 Dec 2011, 11:10
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-2018, Tomasz Grysztar.

Powered by rwasa.