[avr-gcc-list] Binary Parser

2006-01-30 Thread Ram Kumar Rengaswamy
Hi, For my research project, I need to build a tool to parse AVR binaries and perform some modifications to them. Can anyone recommend me a good binary parser that I can use as a starting point to build my tool. Thanks, -Ram ___

RE: [avr-gcc-list] (no subject)

2006-01-30 Thread MuRaT KaRaDeNiZ
So U08 RX485_oldbyte1; is uninitialized data, but compiler also initialize it to zero, why is it different from inline initialization during declaration, I expect the compiler just replace the zero with the initial value i provide? Regards Murat Karadeniz http://www.onlinefavbar.com/mukas

Re: [avr-gcc-list] Use GPIOR* as a struct?

2006-01-30 Thread Dimitar Dimitrov
On 30.1.2006 16:46, Lars Noschinski wrote: I tried #define flags ((struct status_flags)GPIOR1) but gcc throws an error: conversion to non-scalar type requested. This should work: #define flags ( * ( (struct status_flags*) ((void*)(GPIOR1)) ) ) pgpneKB07bM7z.pgp Description: PGP signature

Re: [avr-gcc-list] (no subject)

2006-01-30 Thread Bob Paddock
You want something more like this: #ifndef _GLOBAL_H_ #define _GLOBAL_H_ (1) #ifdef DEFINE_SPACE_GLOBAL_H #define EXTERN_GLOBAL #else #define EXTERN_GLOBAL extern #endif #if defined(__cplusplus) __cplusplus extern C { #endif EXTERN_GLOBAL u08 RX485_oldbyte3, RX485_oldbyte2,

RE: [avr-gcc-list] (no subject)

2006-01-30 Thread MuRaT KaRaDeNiZ
Hi Dave, My header looks like this: #ifndef GLOBAL_H #define GLOBAL_H u08 tx_packet_length=0; u08 header_ok=0; u08 RX485_oldbyte3, RX485_oldbyte2, RX485_oldbyte1; #endif I wait from conditional definition, that it protects from multiple definitions, and if I include the header, no extern

RE: [avr-gcc-list] (no subject)

2006-01-30 Thread Dave Hansen
From: MuRaT KaRaDeNiZ [EMAIL PROTECTED] So U08 RX485_oldbyte1; is uninitialized data, but compiler also initialize it to zero, why is it different from inline initialization during declaration, I expect the compiler just replace the zero with the initial value i provide? Because reality is