flat assembler
Message board for the users of flat assembler.

Index > Windows > Modify the compiler's problem?

Author
Thread Post new topic Reply to topic
iamyaoyao



Joined: 18 May 2011
Posts: 2
iamyaoyao
Hello everybody! I come from China, I am glad to be here, I like FASM;

Question:
I want to delete the compiler 'This program cannot be run in DOS mode.', This did not use the character, reducing the bulk.
Post 18 May 2011, 04:59
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3502
Location: Bulgaria
JohnFound
You have to create your own smaller MZ stub (DOS com or exe) and to use following format directive:
Code:
format PE GUI 4.0 on "yourstub.exe"    
Post 18 May 2011, 06:35
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
iamyaoyao



Joined: 18 May 2011
Posts: 2
iamyaoyao
thx
Post 18 May 2011, 09:43
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo
Actually, I'm pretty sure Tomasz said you could just do this for no stub at all :

Code:
format PE on "NUL"
    


Although, let's be honest, is this really saving anything??? Isn't the PE file aligned anyways?? So I doubt you save much, if anything.

Besides, it's already dumb and useless enough. The only true advantage with such a default is that it doesn't just blindly crash in DOS (which admittedly is rare these days). I almost wish we had a nice small DOS tool that at least did something useful that we could embed in its place. (But what could you cram that wouldn't be too big but would still be universally accepted as useful? Game? Unzipper? Text editor? I know I know, web browser, but that's ridiculous. So I dunno ....)
Post 26 May 2011, 18:06
View user's profile Send private message Visit poster's website Reply with quote
deffi



Joined: 30 May 2011
Posts: 7
deffi
rugxulo wrote:
I almost wish we had a nice small DOS tool that at least did something useful that we could embed in its place. (But what could you cram that wouldn't be too big but would still be universally accepted as useful? Game? Unzipper? Text editor? I know I know, web browser, but that's ridiculous. So I dunno ....)


Windows 7 installer
Post 30 May 2011, 09:17
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.