mirror of
https://github.com/cc65/cc65.git
synced 2025-01-25 11:30:06 +00:00
Rearrange members to lower memory usage
git-svn-id: svn://svn.cc65.org/cc65/trunk@2466 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
0f658a210f
commit
5a656ef6df
@ -244,10 +244,10 @@ CodeEntry* NewCodeEntry (opc_t OPC, am_t AM, const char* Arg,
|
|||||||
/* Initialize the fields */
|
/* Initialize the fields */
|
||||||
E->OPC = D->OPC;
|
E->OPC = D->OPC;
|
||||||
E->AM = AM;
|
E->AM = AM;
|
||||||
E->Arg = GetArgCopy (Arg);
|
|
||||||
E->Flags = NumArg (E->Arg, &E->Num)? CEF_NUMARG : 0;
|
|
||||||
E->Info = D->Info;
|
|
||||||
E->Size = GetInsnSize (E->OPC, E->AM);
|
E->Size = GetInsnSize (E->OPC, E->AM);
|
||||||
|
E->Flags = NumArg (E->Arg, &E->Num)? CEF_NUMARG : 0;
|
||||||
|
E->Arg = GetArgCopy (Arg);
|
||||||
|
E->Info = D->Info;
|
||||||
E->JumpTo = JumpTo;
|
E->JumpTo = JumpTo;
|
||||||
E->LI = UseLineInfo (LI);
|
E->LI = UseLineInfo (LI);
|
||||||
E->RI = 0;
|
E->RI = 0;
|
||||||
|
@ -66,15 +66,15 @@
|
|||||||
/* Code entry structure */
|
/* Code entry structure */
|
||||||
typedef struct CodeEntry CodeEntry;
|
typedef struct CodeEntry CodeEntry;
|
||||||
struct CodeEntry {
|
struct CodeEntry {
|
||||||
opc_t OPC; /* Opcode */
|
unsigned char OPC; /* Opcode */
|
||||||
am_t AM; /* Adressing mode */
|
unsigned char AM; /* Adressing mode */
|
||||||
|
unsigned char Size; /* Estimated size */
|
||||||
|
unsigned char Flags; /* Flags */
|
||||||
char* Arg; /* Argument as string */
|
char* Arg; /* Argument as string */
|
||||||
unsigned long Num; /* Numeric argument */
|
unsigned long Num; /* Numeric argument */
|
||||||
unsigned short Flags; /* Flags */
|
|
||||||
unsigned short Info; /* Additional code info */
|
unsigned short Info; /* Additional code info */
|
||||||
unsigned short Use; /* Registers used */
|
unsigned short Use; /* Registers used */
|
||||||
unsigned short Chg; /* Registers changed/destroyed */
|
unsigned short Chg; /* Registers changed/destroyed */
|
||||||
unsigned char Size; /* Estimated size */
|
|
||||||
CodeLabel* JumpTo; /* Jump label */
|
CodeLabel* JumpTo; /* Jump label */
|
||||||
Collection Labels; /* Labels for this instruction */
|
Collection Labels; /* Labels for this instruction */
|
||||||
LineInfo* LI; /* Source line info for this insn */
|
LineInfo* LI; /* Source line info for this insn */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user