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 > Main > [suggestion] INCLUDELIB

Author
Thread Post new topic Reply to topic
Jin X



Joined: 06 Mar 2004
Posts: 27

[suggestion] INCLUDELIB

There's a suggestion to make INCLUDELIB (and maybe INCLUDEOBJ) directive. It's better than compiling to object formats (like format MS COFF) with linking by external linker because it's a problem to use standart includes (win32a.inc, win32ax.inc, etc) for MS COFF output format...
Post 04 Apr 2018, 10:32
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6770
Location: Kraków, Poland

I consider the formatter module of fasm 1 already overblown and convoluted, that's why I generally stopped adding new features to it. As one may notice, for this reason I have implemented Mach-O format only for fasmg and the same may be true for other new formatters in the future. The fasmg macro implementations are much more flexible and easier to understand and customize by other people, too.
Post 04 Apr 2018, 10:37
View user's profile Send private message Visit poster's website Reply with quote
Jin X



Joined: 06 Mar 2004
Posts: 27

Tomasz Grysztar, ok but if I want to use external object (library) file I need to compile my program to MS COFF format and link it by some external linker, isn't it?

So how can I use includes like 'win32a.inc' for MS COFF formats?
Here's a couple of examples that don't work: https://board.flatassembler.net/topic.php?p=203435#203435
Post 04 Apr 2018, 10:41
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15633
Location: Thasus


Jin X wrote:
So how can I use includes like 'win32a.inc' for MS COFF formats?

You will need to make other include files. As they exist now the win32* files are only meant to be used with the executable output format. You can still use the individual macro files for invoke and proc.
Post 04 Apr 2018, 10:51
View user's profile Send private message Visit poster's website Reply with quote
DimonSoft



Joined: 03 Mar 2010
Posts: 204
Location: Belarus

AFAIK, there’s plenty of formats for object files generated by different compilers (world doesn’t end outside of C/C++ ecosystem). Wouldn’t supporting only some of them make FASM too tied to particular toolsets, anyway?
Post 04 Apr 2018, 18:07
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


Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2018, Tomasz Grysztar.
Powered by rwasa.