Re: [cc65] Whish list

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2004-03-07 12:06:33
Hi!

On Sun, Mar 07, 2004 at 09:19:40AM +0100, Pontus Oldberg wrote:
> I'd like to see the implementation of a #pragma optoff and #pragma opton, to
> turn off optimization for segments of the code. That would ease the process
> of having assembly code in a C-program. I work with embedded systems and
> often have to do bit banging which is convenient to do with macros which
> defines short assembler segments that do the work. The compiler is smart
> though and often throws out bits of my code *sob*. So a way to turn off
> optimizaton would be really nice to have.

The whole C module is first translated, and then the optimizer runs over the
output code by function. With this implementation, the smallest chunk of code
that can be optimized (or not) is a function.

So, what would be possible is to have optimizations on a function by function
level. This is not exactly what you wanted, but it's probably better than
nothing:-)

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Mar 7 12:06:36 2004

This archive was generated by hypermail 2.1.8 : 2004-03-07 12:06:42 CET