m and also answered my query. This may also
help others who have similar problem. Thanks once again.
Regards,
Nayani
From: David A. Lyons
To: Parthasaradhi Nayani
Cc: "avr-gcc-list@nongnu.org"
Sent: Monday, March 19, 2012 5:46 AM
Subject: Re: [av
method to detect it or at the
least prevent code bloat. Thank you for your time.
Regards,
Nayani
From: "Weddington, Eric"
Sent: Monday, March 19, 2012 1:44 AM
Subject: RE: [avr-gcc-list] Peculiar code size problem
Your function pulse_en reduced
The smaller size might be making the compiler decide to inline the function at
some call sites where it didn't before. You could experiment with
"-fno-inline-small-functions" (compiler option) and/or
"__attribute__((noinline))" on your function declaration:
void pulse_en (void) __attri
nu.org
[mailto:avr-
> gcc-list-bounces+eric.weddington=atmel@nongnu.org] On Behalf Of
> Parthasaradhi Nayani
> Sent: Saturday, March 17, 2012 10:17 PM
> To: avr-gcc-list@nongnu.org
> Subject: [avr-gcc-list] Peculiar code size problem
>
>
>
> Hi all,
> I am work
Hi all,
I am working on an ATMEGA8. Since my code was getting close to 8K, I thought I
would tweak the code. I have a function listed below
void pulse_en (void)
{
set_EN; // Set EN
_delay_loop_1 (255);
clr_EN; // clear EN
_delay_loop_1 (255);
}
Since the delay after the "clr" instruction