Mail Archives: djgpp/1997/07/04/13:24:22
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 -