Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: rylan AT inbtekom DOT co DOT za, djgpp AT delorie DOT com Date: Fri, 18 Sep 1998 11:13:37 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: -O3 and -O2 breaks my NASM code In-reply-to: <6ttip0$ng8$1@news2.saix.net> Precedence: bulk "Rylan" wrote: > I've ran into a situation where attempting to use -O3 and even -O2 with ANY > code that calls NASM compiled functions (in their own, seperate .O) compiles > fine but crashes the moment the NASM code is reached. This happens without a > stack trace, nothing - the whole program just stops. Unoptimized compiles of > the same code runs 100%. > > Any ideas why, and how I can get NASM code to coexist with optimised DJGPP > code? Narrow it to the smallest possible program (main calling a simple assembler routine for example), then if it crash disassemble it with objdump and look what a hell is wrong. Post the assembler if you can't figure out (cut the unneeded stuff! just the main and the NASM routine). SET ------------------------------------ 0 -------------------------------- Visit my home page: http://set-soft.home.ml.org/ or http://www.geocities.com/SiliconValley/Vista/6552/ Salvador Eduardo Tropea (SET). (Electronics Engineer) Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org ICQ: 2951574 Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA TE: +(541) 759 0013