From: Hans-Bernhard Broeker 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: from "Eli Zaretskii" at Aug 1, 96 01:56:03 pm Content-Type: text > 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)