flat assembler
Message board for the users of flat assembler.

Index > High Level Languages > vc++ runtime

Author
Thread Post new topic Reply to topic
Enko



Joined: 03 Apr 2007
Posts: 678
Location: Mar del Plata
Enko
I link the solution using /NODEFAULTLIB to reduce the executable size, but of corse, the vc++ runtime canot be used.
Is there a way to create a section in the executable with the dll imports like in fasm? Or something similar but without using LoadLibrary?
Or how to link dinamicly the dlls? so the size of exe stays 1024kb.
Post 18 May 2009, 15:27
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
not sure about 1024kb, but linking against other libraries is done simply by adding .libs to linker command line
Post 18 May 2009, 20:19
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Enko



Joined: 03 Apr 2007
Posts: 678
Location: Mar del Plata
Enko
Quote:
not sure about 1024k

Sorry, my mistake, 1024B.

I want to link dinamicly a dll, like in fasm with import section.
Post 19 May 2009, 01:36
View user's profile Send private message Reply with quote
manfred



Joined: 28 Feb 2009
Posts: 43
Location: Racibórz, Poland
manfred
If you want imports in import section, then simply link with .lib which came with .dll... Then you program will grow to 1536 bytes, because of file alignment - size of each section in PE file must be divisible by file alignment value (usually 512, which is smallest possible), and there will be three sections: headers, code section and import section.

_________________
Sorry for my English...
Post 18 Jun 2009, 21:48
View user's profile Send private message Visit poster's website Reply with quote
Enko



Joined: 03 Apr 2007
Posts: 678
Location: Mar del Plata
Enko
thx for advise. I'll try it.
Post 19 Jun 2009, 03:00
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. Also on YouTube, Twitter.

Website powered by rwasa.