windows - ld linker's output executable is bigger than the golink output executable, why? -


i've assembled simple code nasm , linked output obj file both ld , golink issue golink output executable 2kb of size ld output executable 85kb of size

i'm using mingw32 , both using library kernel32.dll.

linking commands are:

golink /entry _start /console test.obj kernel32.dll 

&

gcc test.obj-l kernel32.dll 

so why huge difference in sizes?

am doing wrong? enlighten me please.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -