I've assembled a simple code with nasm
and linked output obj file with both ld
and golink
The issue is
golink output executable is 2kb
of size
but
ld output executable is 85kb
of size
I'm using mingw32 and both are using the library kernel32.dll
.
linking commands are:
golink /entry _start /console test.obj kernel32.dll
&
gcc test.obj-L kernel32.dll
So why is this huge difference in sizes?
Am I doing something wrong? Could you enlighten me please.