flat assembler
Message board for the users of flat assembler.

flat assembler > Windows > small PE for 4k intro

Goto page Previous  1, 2, 3
Author
Thread Post new topic Reply to topic
hamoz



Joined: 14 Dec 2006
Posts: 29
Hi,

How could you assemble the PE format without link

in fasm IDE, because I see that it compiles < assemble+

link> in one process into a executable file.

cheers

newbie Smile


Last edited by hamoz on 22 Feb 2007, 14:04; edited 1 time in total
Post 21 Feb 2007, 21:14
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
The PE format is directly the executable, fasm internally doesn't perform any "auto linking", if you want to produce an object file that can be later used with a linker then you can use "format MS COFF" (look at the MSCOFF example in the package).
Post 21 Feb 2007, 22:40
View user's profile Send private message Reply with quote
hamoz



Joined: 14 Dec 2006
Posts: 29
LocoDelAssembly, thanks alot Smile

cheers

newbie Very Happy
Post 21 Feb 2007, 23:20
View user's profile Send private message Reply with quote
hamoz



Joined: 14 Dec 2006
Posts: 29
Hi,

How could you link the MSCOFF < in fasm package> with polink,

please help me in steps path and lib.
Post 22 Feb 2007, 14:25
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
Sorry I can't help you here, I always use the executable formats on Windows.
Post 22 Feb 2007, 14:39
View user's profile Send private message Reply with quote
hamoz



Joined: 14 Dec 2006
Posts: 29
I did link it with ms link and it was like that in my case :
Quote:
c:\masm32\bin\link /ENTRY:demo /SUBSYSTEM:WINDOWS mscoff.obj c:\masm32\lib\user32.lib


and the MSCOFF object file was in the bin folder of masm32 Wink

cheers

hamoz Very Happy
Post 22 Feb 2007, 18:12
View user's profile Send private message Reply with quote
hamoz



Joined: 14 Dec 2006
Posts: 29
hey guys

I wanna link the MSCOFF <in fasm package> with polink. Crying or Very sad
Post 22 Feb 2007, 18:17
View user's profile Send private message Reply with quote
hamoz



Joined: 14 Dec 2006
Posts: 29
heh, I did link it with polink successfully I really wonder the size of

mscoff.exe is 2.50kb if you use ms link and 1.50kb if you use polink,

why this difference Confused
Post 22 Feb 2007, 19:00
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2335
Location: Usono (aka, USA)
Warning: this may be considered inappropriate (but that's not my intention)

Here's a seemingly VERY useful bit of info about shrinking a PE, even downloading a file from the Internet and executing it (see why it may be frowned upon?). Anyways, since it has lots of tips (and since the auto-updater FASMW mod exists by Ozzy), maybe someone here can combine the two ideas. (Or not, whatever.)

http://www.phreedom.org/solar/code/tinype/
Post 22 Feb 2007, 20:31
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:  
Goto page Previous  1, 2, 3

< 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-2019, Tomasz Grysztar.

Powered by rwasa.