flat assembler
Message board for the users of flat assembler.

Index > Main > Generate second file

Author
Thread Post new topic Reply to topic
Bargest



Joined: 09 Feb 2012
Posts: 79
Location: Russia
Bargest
Hi,
Is there a way to make FASM produce one more file with specified data? For example, dump a list of specified in main source strings to an external file.

_________________
jmp $ ; Happy end!
Post 17 Sep 2014, 15:26
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17253
Location: In your JS exploiting you and your system
revolution
In the general case the answer is no.

See the following two topics for some more discussion:

http://board.flatassembler.net/topic.php?t=16889
http://board.flatassembler.net/topic.php?t=15850
Post 17 Sep 2014, 19:39
View user's profile Send private message Visit poster's website Reply with quote
Bargest



Joined: 09 Feb 2012
Posts: 79
Location: Russia
Bargest
Thanks for your answer.

Bad news.Sad I make a binary file of my own format with FASM, and it has exported symbols (they often change while I'm developing the app). I wanted to
1) generate fake windows assembly (DLL) source containing same imports and compile it
2) generate .DEF file for export.
3) make a LIB file from DLL and DEF to use imports in C (a part of code is not in assembler).
Now I have to do it manually each time. Some of these actions can be simpy made by batch files, but they are useless if I have to manually add new exported symbol names to 2 files each time.
Post 17 Sep 2014, 20:36
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
Bargest,

fasm has additional output file, namely, its standard output. Some batching can yield any number of resulting files using it.
Post 18 Sep 2014, 07:37
View user's profile Send private message Reply with quote
evk1



Joined: 18 Jun 2014
Posts: 24
evk1
This problem has already been discussed some times ago. I think this link can help you:

http://board.flatassembler.net/topic.php?t=17035

_________________
Sorry for my English
Post 18 Sep 2014, 18:27
View user's profile Send private message 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.