why should anyone want to create a .com file, today ??
for what would it be needed to have an .com/.exe that's so small ?
did you buy a new C64 with windows-emulator & there's not enough ram left for loading .com/.exe files >500 bytes ???
or are you planning to write a virus that's oh-so-small & kicks the whole computer-world's ass ?
in 1st case i would think about it again, and in 2nd case i would prefer assembly language
517 bytes ?? how much smaller do you want to get an .exe file ?
did you consider that an .exe has a header with a certain size ?
even witout any code, you would have a file > 0.
btw.: do you want it to be a win32-app ?? then you should
1) quickly forget your plans about using .com-files
2) quickly forget your plans of having small .exe-files
3) (quickly dump your C64/win-emu & buy a pc
)
4) ...
and now some comment about protected-mode (oh... how i loved that mode... until windows came & took control about it & all the other pc-goodies
) :
protected mode is not 'implemented' in win32, dos4g/w, cwsdpmi or any other software. it's a CPU-mode. it's implemented in hardware (the CPU) ! so it can only be USED by an OS or any other program (if there's not already any OS or memory manager using it). the memory-management is NOT implemented in hardware, so the app that switched to PM (i.e. the OS) manages descriptor-tables, virtual memory, or whatever is to be done...
that's all, folks !
[edited by - uNiQue0815 on June 27, 2002 12:32:53 PM]