Date: Mon, 24 Jul 1995 08:42:50 -0400 From: kagel AT quasar DOT bloomberg DOT com To: ralsina AT ultra4 DOT unl DOT edu DOT ar Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: Inline assembler Reply-To: kagel AT ts1 DOT bloomberg DOT com Errors-To: postmaster AT ns1 Date: Fri, 21 Jul 1995 10:47:07 -0400 (WST) From: Roberto Alsina Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Content-Length: 779 I have a small assembler routine that waits for a vertical retrace of the screen, something very useful for graphics, and two little problems: 1) The routine makes a jump to a label, that's ok, but when compiling whit -O3, it gets inlined, so the label gets duplicated everywhere the function is called, and the program won't compile. Is there something like a "not_inline" directive to tell the compiler NOT to inline that function?, or a way to define a local label? (i saw it on the info files, but i couldn't make it work, if somebody has, please send me an example). 2) How do i reference a local variable (or label) or an argument passed to a function from an asm? _varname only seems to work with globals. Thanks in advance. Roberto Alsina ralsina AT unl DOT edu DOT ar Try -fno-inline-functions perhaps with -fno-inline. -- Art S. Kagel, kagel AT ts1 DOT bloomberg DOT com Variety is the soul of pleasure. -- Aphra Behn