avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] FW: optimalisation level setting from within C-source cod


From: Ing . Jiří Petrák - PERYS
Subject: [avr-gcc-list] FW: optimalisation level setting from within C-source code....
Date: Tue, 16 Oct 2007 13:46:41 +0200

Dear friends,

first of all – I am first time writing to avr-gcc list members, and – I am only true hobbist of AVR programming..

 

So what I would need: within one C-source code, I have used some functions written for 1-wire-bus communication.

Some functions are timing-critical, and it was written WITHOUT any optimalisation and works OK.

When I tried to use -O default optimalisation (which is still usable for debugging with  AVRStudio + JTAG), these functions stop to operate.

 

And my question:

Is it possible to set the optimalisation level for some functions (or part of source-code) to different level than optimalisation used for this project as default?

Eg. to use as default for project -O level, but for some partial code to use -O0 level..

How to write it  into source-code – as some #pragma statement?

 

Thank you for your reply....

 

Jiri Petrak

address@hidden

 

+420 602 355872
NARDIC CRESTRON CZECH s.r.o.
www.crestron-czech.cz

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]