www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/04/13:24:22

Message-ID: <33BCF734.7491@cs.com>
Date: Fri, 04 Jul 1997 13:14:28 +0000
From: "John M. Aldrich" <fighteer AT cs DOT com>
Reply-To: fighteer AT cs DOT com
Organization: Two pounds of chaos and a pinch of salt
MIME-Version: 1.0
To: Andrew Crabtree <andrewc AT typhoon DOT rose DOT hp DOT com>
CC: djgpp AT delorie DOT com
Subject: Re: void main ?
References: <199707041624 DOT AA073873448 AT typhoon DOT rose DOT hp DOT com>

Andrew Crabtree wrote:
> 
> Sure, for the i386 class machines I would agree that void main
> is never going to cause any problem other than a garbage return
> value.  The point I think was that on other architectures (I can't think
> of any modern ones, maybe the 6502), return values may go on a stack, in
> which case you could have problems.

You are certainly correct.  Since DJGPP is a DOS-specific compiler, I
usually only worry about PCs when framing my replies.  On other
hardware, void main() may be substantially more dangerous.

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I |     mailto:fighteer AT cs DOT com      |
| Proud owner of what might one   |   http://www.cs.com/fighteer    |
| day be a spectacular MUD...     | Plan: To make Bill Gates suffer |
---------------------------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019