Autor Tema: para que se usa el prefijo "register" en CCS?  (Leído 1372 veces)

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado elgarbe

  • Moderadores
  • PIC24H
  • *****
  • Mensajes: 2178
para que se usa el prefijo "register" en CCS?
« en: 04 de Diciembre de 2013, 21:13:19 »
estoy pasando este código
http://www.ccsinfo.com/forum/viewtopic.php?p=179610
a un LPC1769 (ARM) y tengo problemas en la declaracion de unas variables como "register signed long"

Que significa register????

Saludos y gracias!
-
Leonardo Garberoglio

Desconectado RALF2

  • Moderadores
  • PIC24H
  • *****
  • Mensajes: 2060
Re: para que se usa el prefijo "register" en CCS?
« Respuesta #1 en: 04 de Diciembre de 2013, 21:35:26 »
En CCS register es un calificador que no tiene uso, asi que donde te aparece en el codigo, lo puedes obviar sin ningun problema   :mrgreen:

Para mayor informacion puedes leer aqui

Desconectado MGLSOFT

  • Moderadores
  • DsPIC33
  • *****
  • Mensajes: 7912
Re: para que se usa el prefijo "register" en CCS?
« Respuesta #2 en: 04 de Diciembre de 2013, 21:39:18 »
Citar
Type-Qualifier
 
static
 Variable is globally active and initialized to 0.  Only accessible from this compilation unit.

 
 
auto
 Variable exists only while the procedure is active.  This is the default and AUTO need not be used.

 
 
double
 Is a reserved word but is not a supported data type.

 
 
extern
 External variable used with multiple compilation units.  No storage is allocated.  Is used to make otherwise out of scope data accessible.  there must be a non-extern definition at the global level in some compilation unit.

 
 
register

 
 Is allowed as a qualifier however, has no effect.

 
 
_ fixed(n)

 
 Creates a fixed point decimal number where n is how many decimal places to implement.

 
 
unsigned
 Data is always positive.  This is the default data type if not specified.

 
 
signed
 Data can be negative or positive.

 
 
volatile
 Tells the compiler optimizer that this variable can be changed at any point during execution.

 
 
const
 Data is read-only.  Depending on compiler configuration, this qualifier may just make the data read-only -AND/OR- it may place the data into program memory to save space. (see #DEVICE const=)

 
 
rom
 Forces data into program memory.  Pointers may be used to this data but they can not be mixed with RAM pointers.
 
void
 Built-in basic type.  Type void is used to indicate no specific type in places where a type is required.

 
 
readonly
 Writes to this variable should be dis-allowed
 

Exacto, eso es de la ayuda de CCS...
Todos los dias aprendo algo nuevo, el ultimo día de mi vida aprenderé a morir....
Mi Abuelo.

Desconectado elgarbe

  • Moderadores
  • PIC24H
  • *****
  • Mensajes: 2178
Re: para que se usa el prefijo "register" en CCS?
« Respuesta #3 en: 04 de Diciembre de 2013, 22:42:37 »
Muchas gracias gente!!!

Sds.
-
Leonardo Garberoglio


 

anything