avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-libc-dev] [RFC] catching misspeeled signal names


From: Dmitry K.
Subject: Re: [avr-libc-dev] [RFC] catching misspeeled signal names
Date: Wed, 21 Apr 2004 16:35:48 +1100
User-agent: KMail/1.5

Hi.

Next items are working with `avr-libc-misspeeled-sig-2.diff':
  - SIGNAL(SIG_INTERRUPT0) in C and asm, OK
  - SIGNAL(SIG_MISSED) produced error in C and asm, OK

But after this patch:
  1. It is necessary to rewrite asm
  2. It is impossible to call ISR-function as common C function.

I propose next scheme, that is removing last disadvantages:

  SIGNAL(SIG_INTERRUPT0)
  ==>  SIG_INTERRUPT0 ## _TMP()     // signal.h
  ==>  __vector_1 ## _TMP()         // signal.h
  ==>  __vector_1_TMP()             // signal.h
  ==>  __vector_1                   // vec_tmp.h

Now:
  SIGNAL(): with spelling cheking (C and asm)
  SIG_XXX:  for direct substitution (old asm and function names)

Files:
  signal.h  - changed
  vec_tmp.h - added (builded from `vec_tmp.sh')

Notes:
  - it is possible to add asm macro (.globl, .type ...)
  as in `avr-...-2.diff'
  - it is necessary to add comments and strings, as "-> Missp..."

Attached contains files above and examples.

Best regards.

Attachment: scheme.tar.gz
Description: application/tgz


reply via email to

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