delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/08/01/08:37:59

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Message-Id: <9608011232.AA26314@axpmgr.physik.rwth-aachen.de>
Subject: Re: Startup customization
To: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii)
Date: Thu, 1 Aug 1996 14:32:41 +0200 (MET DST)
Cc: djgpp-workers AT delorie DOT com (djgpp-workers)
In-Reply-To: <Pine.SUN.3.91.960801134448.5091F-100000@is> from "Eli Zaretskii" at Aug 1, 96 01:56:03 pm

> Currently, the only other way is to provide custom crt1 functions, but 
> they will need to duplicate most (if not all) of the code of existing 
> functions. 

I don't think that's the only way. What about the good old 'C++ static
object with a constructor' trick? Such constructor functions will be
called before the start of main(), and can do just about anything
you want them to. I even remember having seen such a trick in use
in some earlier DJGPP distribution.

Hans-Bernhard Broeker (Aachen, Germany)

- Raw text -


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