[En-Nut-Discussion] AW: enlarge objects of Nut/OS modules with ntohl(), ...

Oliver Schulz Oliver.Schulz at bong.de
Tue Apr 20 09:36:03 CEST 2004


Hi Dusan,

Yes, you found a bug again. In include/sys/types.h the macro __GCC__ is
checked, but it is not defined. The macro __GNUC__ is the right one.
__AVR__ is predefined by the compiler, so you don't need to add it to
UserConf.mk.

I will commit a corrected version of types.h soon.

Cheers,
Oliver.

> -----Ursprungliche Nachricht-----
> Von: dferbas at dfsoft.cz [mailto:dferbas at dfsoft.cz]
> Gesendet: Montag, 19. April 2004 23:06
> An: Oliver Schulz
> Betreff: enlarge objects of Nut/OS modules with ntohl(), ...
> 
> 
> Hi Oliver,
> 
> I tried to add
> HWDEF=-D__HARVARD_ARCH__ -D__GCC__ -D__AVR__
> into UserConf.mk file and that was it. Once this is defined 
> whole Nut uses 
> macros for ntohl(), etc. And this generates more efficient 
> code. Finaly we 
> have code of 0x20000 bytes. Exactly :-) I know it can be 
> little optimized. 
> Anyway it's most efficiently used flash :-)
> 
> Are those symbols intended to be globally defined by a compiler ?
> 
> 
> 
> Dusan Ferbas
> www.dfsoft.cz  
> 



More information about the En-Nut-Discussion mailing list