asghan
04-11-2012, 23:22
Salve
avrei la neccessita di compilare simcpu (http://web.diegm.uniud.it/pierluca/public_html/teaching/fpac/strumenti/simcpu/simcpu.zip) per linux
ma mi restituisce diversi messaggi di warning
gcc -o include include.c
$ gcc -o assembler assembler.c
In file included from assembler.c:25:0:
simcpu.h:60:13: warning: 'packed' attribute ignored for field of type 'byte' [-Wattributes]
simcpu.h:72:19: warning: 'packed' attribute ignored for field of type 'struct TAG_registers' [-Wattributes]
simcpu.h:73:19: warning: 'packed' attribute ignored for field of type 'byte' [-Wattributes]
simcpu.h:74:16: warning: 'packed' attribute ignored for field of type 'union TAG_operands' [-Wattributes]
simcpu.h:75:13: warning: 'packed' attribute ignored for field of type 'struct TAG_instruction_fields' [-Wattributes]
$ gcc -o simcpu executor.c user_interface.c
In file included from executor.c:23:0:
simcpu.h:60:13: warning: 'packed' attribute ignored for field of type 'byte' [-Wattributes]
simcpu.h:72:19: warning: 'packed' attribute ignored for field of type 'struct TAG_registers' [-Wattributes]
simcpu.h:73:19: warning: 'packed' attribute ignored for field of type 'byte' [-Wattributes]
simcpu.h:74:16: warning: 'packed' attribute ignored for field of type 'union TAG_operands' [-Wattributes]
simcpu.h:75:13: warning: 'packed' attribute ignored for field of type 'struct TAG_instruction_fields' [-Wattributes]
e dopo averlo provato non mi sembra che funzioni...
non conoscendo il c ho difficolta a risolvere il problema :help:
grazie per gli eventuali consigli :)
avrei la neccessita di compilare simcpu (http://web.diegm.uniud.it/pierluca/public_html/teaching/fpac/strumenti/simcpu/simcpu.zip) per linux
ma mi restituisce diversi messaggi di warning
gcc -o include include.c
$ gcc -o assembler assembler.c
In file included from assembler.c:25:0:
simcpu.h:60:13: warning: 'packed' attribute ignored for field of type 'byte' [-Wattributes]
simcpu.h:72:19: warning: 'packed' attribute ignored for field of type 'struct TAG_registers' [-Wattributes]
simcpu.h:73:19: warning: 'packed' attribute ignored for field of type 'byte' [-Wattributes]
simcpu.h:74:16: warning: 'packed' attribute ignored for field of type 'union TAG_operands' [-Wattributes]
simcpu.h:75:13: warning: 'packed' attribute ignored for field of type 'struct TAG_instruction_fields' [-Wattributes]
$ gcc -o simcpu executor.c user_interface.c
In file included from executor.c:23:0:
simcpu.h:60:13: warning: 'packed' attribute ignored for field of type 'byte' [-Wattributes]
simcpu.h:72:19: warning: 'packed' attribute ignored for field of type 'struct TAG_registers' [-Wattributes]
simcpu.h:73:19: warning: 'packed' attribute ignored for field of type 'byte' [-Wattributes]
simcpu.h:74:16: warning: 'packed' attribute ignored for field of type 'union TAG_operands' [-Wattributes]
simcpu.h:75:13: warning: 'packed' attribute ignored for field of type 'struct TAG_instruction_fields' [-Wattributes]
e dopo averlo provato non mi sembra che funzioni...
non conoscendo il c ho difficolta a risolvere il problema :help:
grazie per gli eventuali consigli :)