Giter VIP home page Giter VIP logo

nachos-3.4's People

Contributors

soohyunc avatar

Watchers

 avatar

nachos-3.4's Issues

build warning (deprecated conversion from string constant to ‘char*)

../userprog/progtest.cc: In function ‘void ConsoleTest(char*, char*)’:
../userprog/progtest.cc:74:46: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
readAvail = new Semaphore("read avail", 0);
^
../userprog/progtest.cc:75:46: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
writeDone = new Semaphore("write done", 0);

build break

build break occurred.

[soohyunc@wombat:~/workspace/nachos-3.4/code] $ make
cd threads; make depend
make[1]: Entering directory `/home/soohyunc/workspace/nachos-3.4/code/threads'
g++ -I../threads -I../machine -DTHREADS -DHOST_MIPS -DCHANGED -M ../threads/main.cc ../threads/list.cc ../threads/scheduler.cc ../threads/synch.cc ../threads/synchlist.cc ../threads/system.cc ../threads/thread.cc ../threads/utility.cc ../threads/threadtest.cc ../machine/interrupt.cc ../machine/sysdep.cc ../machine/stats.cc ../machine/timer.cc > makedep
echo '/^# DO NOT DELETE THIS LINE/+2,$d' >eddep
echo '$r makedep' >>eddep
echo 'w' >>eddep
ed - Makefile < eddep
rm eddep makedep 
echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
echo '# see make depend above' >> Makefile
make[1]: Leaving directory `/home/soohyunc/workspace/nachos-3.4/code/threads'
cd threads; make nachos
make[1]: Entering directory `/home/soohyunc/workspace/nachos-3.4/code/threads'
g++ -g -Wall -Wshadow  -fpermissive -I../threads -I../machine -DTHREADS -DHOST_MIPS -DCHANGED -c ../machine/sysdep.cc
../machine/sysdep.cc:52:48: error: declaration of C function ‘int creat(const char*, short unsigned int)’ conflicts with
In file included from /usr/include/x86_64-linux-gnu/sys/file.h:24:0,
                 from ../machine/sysdep.cc:35:
/usr/include/fcntl.h:192:12: error: previous declaration ‘int creat(const char*, mode_t)’ here
../machine/sysdep.cc:60:25: error: declaration of C function ‘int select(int, void*, void*, void*, timeval*)’ conflicts with
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219:0,
                 from ../machine/sysdep.cc:32:
/usr/include/x86_64-linux-gnu/sys/select.h:106:12: error: previous declaration ‘int select(int, fd_set*, fd_set*, fd_set*, timeval*)’ here
../machine/sysdep.cc:83:43: error: declaration of C function ‘int mprotect(char*, int, int)’ conflicts with
In file included from ../machine/sysdep.cc:37:0:
/usr/include/x86_64-linux-gnu/sys/mman.h:81:12: error: previous declaration ‘int mprotect(void*, size_t, int)’ here
../machine/sysdep.cc:86:32: error: declaration of C function ‘int bind(int, const void*, int)’ conflicts with
In file included from ../machine/sysdep.cc:34:0:
/usr/include/x86_64-linux-gnu/sys/socket.h:124:12: error: previous declaration ‘int bind(int, const sockaddr*, socklen_t)’ here
../machine/sysdep.cc:87:49: error: declaration of C function ‘int recvfrom(int, void*, int, int, void*, int*)’ conflicts with
In file included from ../machine/sysdep.cc:34:0:
/usr/include/x86_64-linux-gnu/sys/socket.h:175:16: error: previous declaration ‘ssize_t recvfrom(int, void*, size_t, int, sockaddr*, socklen_t*)’ here
../machine/sysdep.cc:88:51: error: declaration of C function ‘int sendto(int, const void*, int, int, void*, int)’ conflicts with
In file included from ../machine/sysdep.cc:34:0:
/usr/include/x86_64-linux-gnu/sys/socket.h:164:16: error: previous declaration ‘ssize_t sendto(int, const void*, size_t, int, const sockaddr*, socklen_t)’ here
../machine/sysdep.cc: In function ‘void ReadFromSocket(int, char*, int)’:
../machine/sysdep.cc:358:70: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘char*’ [-Wformat]
../machine/sysdep.cc: In function ‘void Exit(int)’:
../machine/sysdep.cc:425:18: error: too many arguments to function ‘void exit()’
../machine/sysdep.cc:82:6: note: declared here
../machine/sysdep.cc: In function ‘char* AllocBoundedArray(int)’:
../machine/sysdep.cc:466:30: error: ‘getpagesize’ was not declared in this scope
../machine/sysdep.cc: In function ‘void DeallocBoundedArray(char*, int)’:
../machine/sysdep.cc:485:30: error: ‘getpagesize’ was not declared in this scope
make[1]: *** [sysdep.o] Error 1
make[1]: Leaving directory `/home/soohyunc/workspace/nachos-3.4/code/threads'
make: *** [all] Error 2
[soohyunc@wombat:~/workspace/nachos-3.4/code] $ 

various build warnings in "fstest.cc"

../filesys/fstest.cc: In function ‘void FileWrite()’:
../filesys/fstest.cc:124:40: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
if (!fileSystem->Create(FileName, 0)) {
^
../filesys/fstest.cc:128:41: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
openFile = fileSystem->Open(FileName);
^
../filesys/fstest.cc:134:57: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
numBytes = openFile->Write(Contents, ContentSize);
^
../filesys/fstest.cc: In function ‘void FileRead()’:
../filesys/fstest.cc:154:46: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
if ((openFile = fileSystem->Open(FileName)) == NULL) {
^
../filesys/fstest.cc: In function ‘void PerformanceTest()’:
../filesys/fstest.cc:179:37: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
if (!fileSystem->Remove(FileName)) {

build break

Currently, this repo doesn't build with the following error message:

[soohyunc@orion:~/workspace/nachos-3.4/code] $ make
cd threads; make depend
make[1]: Entering directory `/export/home/soohyunc/workspace/nachos-3.4/code/threads'
g++ -I../threads -I../machine -DTHREADS -DHOST_i386 -DCHANGED -M ../threads/main.cc ../threads/list.cc ../threads/scheduler.cc ../threads/synch.cc ../threads/synchlist.cc ../threads/system.cc ../threads/thread.cc ../threads/utility.cc ../threads/threadtest.cc ../machine/interrupt.cc ../machine/sysdep.cc ../machine/stats.cc ../machine/timer.cc > makedep
echo '/^# DO NOT DELETE THIS LINE/+2,$d' >eddep
echo '$r makedep' >>eddep
echo 'w' >>eddep
ed - Makefile < eddep
rm eddep makedep 
echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
echo '# see make depend above' >> Makefile
make[1]: Leaving directory `/export/home/soohyunc/workspace/nachos-3.4/code/threads'                                                                       
cd threads; make nachos                                                                                                                                    
make[1]: Entering directory `/export/home/soohyunc/workspace/nachos-3.4/code/threads'                                                                      
g++ -g -Wall -Wshadow  -fpermissive -I../threads -I../machine -DTHREADS -DHOST_i386 -DCHANGED -c ../threads/main.cc                                        
g++ -g -Wall -Wshadow  -fpermissive -I../threads -I../machine -DTHREADS -DHOST_i386 -DCHANGED -c ../threads/list.cc                                        
g++ -g -Wall -Wshadow  -fpermissive -I../threads -I../machine -DTHREADS -DHOST_i386 -DCHANGED -c ../threads/scheduler.cc                                   
g++ -g -Wall -Wshadow  -fpermissive -I../threads -I../machine -DTHREADS -DHOST_i386 -DCHANGED -c ../threads/synch.cc                                       
g++ -g -Wall -Wshadow  -fpermissive -I../threads -I../machine -DTHREADS -DHOST_i386 -DCHANGED -c ../threads/synchlist.cc                                   
g++ -g -Wall -Wshadow  -fpermissive -I../threads -I../machine -DTHREADS -DHOST_i386 -DCHANGED -c ../threads/system.cc                                      
g++ -g -Wall -Wshadow  -fpermissive -I../threads -I../machine -DTHREADS -DHOST_i386 -DCHANGED -c ../threads/thread.cc                                      
../threads/thread.cc: In member function ‘void Thread::StackAllocate(VoidFunctionPtr, int)’:                                                               
../threads/thread.cc:274:26: warning: cast from ‘void (*)()’ to ‘int’ loses precision [-fpermissive]                                                       
g++ -g -Wall -Wshadow  -fpermissive -I../threads -I../machine -DTHREADS -DHOST_i386 -DCHANGED -c ../threads/utility.cc                                     
g++ -g -Wall -Wshadow  -fpermissive -I../threads -I../machine -DTHREADS -DHOST_i386 -DCHANGED -c ../threads/threadtest.cc                                  
g++ -g -Wall -Wshadow  -fpermissive -I../threads -I../machine -DTHREADS -DHOST_i386 -DCHANGED -c ../machine/interrupt.cc                                   
g++ -g -Wall -Wshadow  -fpermissive -I../threads -I../machine -DTHREADS -DHOST_i386 -DCHANGED -c ../machine/stats.cc                                       
g++ -g -Wall -Wshadow  -fpermissive -I../threads -I../machine -DTHREADS -DHOST_i386 -DCHANGED -c ../machine/sysdep.cc                                      
../machine/sysdep.cc: In function ‘void ReadFromSocket(int, char*, int)’:                                                                                  
../machine/sysdep.cc:367:41: warning: invalid conversion from ‘int*’ to ‘socklen_t* {aka unsigned int*}’ [-fpermissive]                                    
../machine/sysdep.cc:100:9: warning:   initializing argument 6 of ‘ssize_t recvfrom(int, void*, size_t, int, sockaddr*, socklen_t*)’ [-fpermissive]        
../machine/sysdep.cc:371:70: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘char*’ [-Wformat]                      
g++ -g -Wall -Wshadow  -fpermissive -I../threads -I../machine -DTHREADS -DHOST_i386 -DCHANGED -c ../machine/timer.cc                                       
../machine/timer.cc: In function ‘void TimerHandler(int)’:                                                                                                 
../machine/timer.cc:28:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]                                                 
../machine/timer.cc: In constructor ‘Timer::Timer(VoidFunctionPtr, int, bool)’:                                                                            
../machine/timer.cc:51:45: warning: cast from ‘Timer*’ to ‘int’ loses precision [-fpermissive]                                                             
../machine/timer.cc: In member function ‘void Timer::TimerExpired()’:                                                                                      
../machine/timer.cc:65:45: warning: cast from ‘Timer*’ to ‘int’ loses precision [-fpermissive]                                                             
g++ main.o list.o scheduler.o synch.o synchlist.o system.o thread.o utility.o threadtest.o interrupt.o stats.o sysdep.o timer.o switch.o -m32 -o nachos    
/usr/bin/ld: i386:x86-64 architecture of input file `main.o' is incompatible with i386 output                                                              
/usr/bin/ld: i386:x86-64 architecture of input file `list.o' is incompatible with i386 output                                                              
/usr/bin/ld: i386:x86-64 architecture of input file `scheduler.o' is incompatible with i386 output                                                         
/usr/bin/ld: i386:x86-64 architecture of input file `synch.o' is incompatible with i386 output                                                             
/usr/bin/ld: i386:x86-64 architecture of input file `synchlist.o' is incompatible with i386 output                                                         
/usr/bin/ld: i386:x86-64 architecture of input file `system.o' is incompatible with i386 output                                                            
/usr/bin/ld: i386:x86-64 architecture of input file `thread.o' is incompatible with i386 output                                                            
/usr/bin/ld: i386:x86-64 architecture of input file `utility.o' is incompatible with i386 output                                                           
/usr/bin/ld: i386:x86-64 architecture of input file `threadtest.o' is incompatible with i386 output                                                        
/usr/bin/ld: i386:x86-64 architecture of input file `interrupt.o' is incompatible with i386 output                                                         
/usr/bin/ld: i386:x86-64 architecture of input file `stats.o' is incompatible with i386 output                                                             
/usr/bin/ld: i386:x86-64 architecture of input file `sysdep.o' is incompatible with i386 output                                                            
/usr/bin/ld: i386:x86-64 architecture of input file `timer.o' is incompatible with i386 output                                                             
list.o: In function `List::Append(void*)':                                                                                                                 
/export/home/soohyunc/workspace/nachos-3.4/code/threads/../threads/list.cc:80: undefined reference to `operator new(unsigned long)'                        
list.o: In function `List::Prepend(void*)':                                                                                                                
/export/home/soohyunc/workspace/nachos-3.4/code/threads/../threads/list.cc:106: undefined reference to `operator new(unsigned long)'
list.o: In function `List::SortedInsert(void*, int)':
/export/home/soohyunc/workspace/nachos-3.4/code/threads/../threads/list.cc:182: undefined reference to `operator new(unsigned long)'
scheduler.o: In function `Scheduler::Scheduler()':
/export/home/soohyunc/workspace/nachos-3.4/code/threads/../threads/scheduler.cc:32: undefined reference to `operator new(unsigned long)'
scheduler.o: In function `Scheduler::Run(Thread*)':
/export/home/soohyunc/workspace/nachos-3.4/code/threads/../threads/scheduler.cc:116: undefined reference to `SWITCH'
synch.o: In function `Semaphore::Semaphore(char*, int)':
/export/home/soohyunc/workspace/nachos-3.4/code/threads/../threads/synch.cc:40: undefined reference to `operator new(unsigned long)'
synchlist.o: In function `SynchList::SynchList()':
/export/home/soohyunc/workspace/nachos-3.4/code/threads/../threads/synchlist.cc:27: undefined reference to `operator new(unsigned long)'
/export/home/soohyunc/workspace/nachos-3.4/code/threads/../threads/synchlist.cc:28: undefined reference to `operator new(unsigned long)'
/export/home/soohyunc/workspace/nachos-3.4/code/threads/../threads/synchlist.cc:29: undefined reference to `operator new(unsigned long)'
system.o: In function `Initialize(int, char**)':
/export/home/soohyunc/workspace/nachos-3.4/code/threads/../threads/system.cc:133: undefined reference to `operator new(unsigned long)'
system.o:/export/home/soohyunc/workspace/nachos-3.4/code/threads/../threads/system.cc:134: more undefined references to `operator new(unsigned long)' follow
thread.o: In function `Thread::StackAllocate(void (*)(int), int)':
/export/home/soohyunc/workspace/nachos-3.4/code/threads/../threads/thread.cc:274: undefined reference to `ThreadRoot'
/export/home/soohyunc/workspace/nachos-3.4/code/threads/../threads/thread.cc:280: undefined reference to `ThreadRoot'
threadtest.o: In function `ThreadTest()':
/export/home/soohyunc/workspace/nachos-3.4/code/threads/../threads/threadtest.cc:46: undefined reference to `operator new(unsigned long)'
interrupt.o: In function `Interrupt::Interrupt()':
/export/home/soohyunc/workspace/nachos-3.4/code/threads/../machine/interrupt.cc:64: undefined reference to `operator new(unsigned long)'
interrupt.o: In function `Interrupt::Schedule(void (*)(int), int, int, IntType)':
/export/home/soohyunc/workspace/nachos-3.4/code/threads/../machine/interrupt.cc:269: undefined reference to `operator new(unsigned long)'
sysdep.o: In function `AllocBoundedArray(int)':
/export/home/soohyunc/workspace/nachos-3.4/code/threads/../machine/sysdep.cc:480: undefined reference to `operator new[](unsigned long)'
/usr/bin/ld: main.o: file class ELFCLASS64 incompatible with ELFCLASS32
/usr/bin/ld: final link failed: File in wrong format
collect2: error: ld returned 1 exit status
make[1]: *** [nachos] Error 1
make[1]: Leaving directory `/export/home/soohyunc/workspace/nachos-3.4/code/threads'
make: *** [all] Error 2

various build warnings in "mipssim.cc"

./machine/mipssim.cc: In member function ‘void Machine::OneInstruction(Instruction*)’:
../machine/mipssim.cc:108:55: warning: array subscript has type ‘char’ [-Wchar-subscripts]
struct OpString *str = &opStrings[instr->opCode];
^
../machine/mipssim.cc:126:27: warning: array subscript has type ‘char’ [-Wchar-subscripts]
sum = registers[instr->rs] + registers[instr->rt];
^
../machine/mipssim.cc:126:50: warning: array subscript has type ‘char’ [-Wchar-subscripts]
sum = registers[instr->rs] + registers[instr->rt];
^
../machine/mipssim.cc:127:28: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (!((registers[instr->rs] ^ registers[instr->rt]) & SIGN_BIT) &&
^
../machine/mipssim.cc:127:51: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (!((registers[instr->rs] ^ registers[instr->rt]) & SIGN_BIT) &&
^
../machine/mipssim.cc:128:27: warning: array subscript has type ‘char’ [-Wchar-subscripts]
((registers[instr->rs] ^ sum) & SIGN_BIT)) {
^
../machine/mipssim.cc:132:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = sum;
^
../machine/mipssim.cc:136:27: warning: array subscript has type ‘char’ [-Wchar-subscripts]
sum = registers[instr->rs] + instr->extra;
^
../machine/mipssim.cc:137:28: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (!((registers[instr->rs] ^ instr->extra) & SIGN_BIT) &&
^
../machine/mipssim.cc:142:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rt] = sum;
^
../machine/mipssim.cc:146:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rt] = registers[instr->rs] + instr->extra;
^
../machine/mipssim.cc:146:44: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rt] = registers[instr->rs] + instr->extra;
^
../machine/mipssim.cc:150:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[instr->rs] + registers[instr->rt];
^
../machine/mipssim.cc:150:44: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[instr->rs] + registers[instr->rt];
^
../machine/mipssim.cc:150:67: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[instr->rs] + registers[instr->rt];
^
../machine/mipssim.cc:154:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[instr->rs] & registers[instr->rt];
^
../machine/mipssim.cc:154:44: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[instr->rs] & registers[instr->rt];
^
../machine/mipssim.cc:154:67: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[instr->rs] & registers[instr->rt];
^
../machine/mipssim.cc:158:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rt] = registers[instr->rs] & (instr->extra & 0xffff);
^
../machine/mipssim.cc:158:44: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rt] = registers[instr->rs] & (instr->extra & 0xffff);
^
../machine/mipssim.cc:162:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (registers[instr->rs] == registers[instr->rt])
^
../machine/mipssim.cc:162:49: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (registers[instr->rs] == registers[instr->rt])
^
../machine/mipssim.cc:169:27: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (!(registers[instr->rs] & SIGN_BIT))
^
../machine/mipssim.cc:174:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (registers[instr->rs] > 0)
^
../machine/mipssim.cc:179:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (registers[instr->rs] <= 0)
^
../machine/mipssim.cc:186:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (registers[instr->rs] & SIGN_BIT)
^
../machine/mipssim.cc:191:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (registers[instr->rs] != registers[instr->rt])
^
../machine/mipssim.cc:191:49: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (registers[instr->rs] != registers[instr->rt])
^
../machine/mipssim.cc:196:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (registers[instr->rt] == 0) {
^
../machine/mipssim.cc:200:45: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[LoReg] = registers[instr->rs] / registers[instr->rt];
^
../machine/mipssim.cc:200:68: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[LoReg] = registers[instr->rs] / registers[instr->rt];
^
../machine/mipssim.cc:201:44: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[HiReg] = registers[instr->rs] % registers[instr->rt];
^
../machine/mipssim.cc:201:67: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[HiReg] = registers[instr->rs] % registers[instr->rt];
^
../machine/mipssim.cc:206:43: warning: array subscript has type ‘char’ [-Wchar-subscripts]
rs = (unsigned int) registers[instr->rs];
^
../machine/mipssim.cc:207:43: warning: array subscript has type ‘char’ [-Wchar-subscripts]
rt = (unsigned int) registers[instr->rt];
^
../machine/mipssim.cc:226:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[NextPCReg] + 4;
^
../machine/mipssim.cc:228:31: warning: array subscript has type ‘char’ [-Wchar-subscripts]
pcAfter = registers[instr->rs];
^
../machine/mipssim.cc:233:27: warning: array subscript has type ‘char’ [-Wchar-subscripts]
tmp = registers[instr->rs] + instr->extra;
^
../machine/mipssim.cc:247:27: warning: array subscript has type ‘char’ [-Wchar-subscripts]
tmp = registers[instr->rs] + instr->extra;
^
../machine/mipssim.cc:265:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rt] = instr->extra << 16;
^
../machine/mipssim.cc:269:27: warning: array subscript has type ‘char’ [-Wchar-subscripts]
tmp = registers[instr->rs] + instr->extra;
^
../machine/mipssim.cc:281:27: warning: array subscript has type ‘char’ [-Wchar-subscripts]
tmp = registers[instr->rs] + instr->extra;
^
../machine/mipssim.cc:293:41: warning: array subscript has type ‘char’ [-Wchar-subscripts]
nextLoadValue = registers[instr->rt];
^
../machine/mipssim.cc:312:27: warning: array subscript has type ‘char’ [-Wchar-subscripts]
tmp = registers[instr->rs] + instr->extra;
^
../machine/mipssim.cc:324:41: warning: array subscript has type ‘char’ [-Wchar-subscripts]
nextLoadValue = registers[instr->rt];
^
../machine/mipssim.cc:346:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[HiReg];
^
../machine/mipssim.cc:350:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[LoReg];
^
../machine/mipssim.cc:354:40: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[HiReg] = registers[instr->rs];
^
../machine/mipssim.cc:358:40: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[LoReg] = registers[instr->rs];
^
../machine/mipssim.cc:362:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
Mult(registers[instr->rs], registers[instr->rt], TRUE,
^
../machine/mipssim.cc:362:48: warning: array subscript has type ‘char’ [-Wchar-subscripts]
Mult(registers[instr->rs], registers[instr->rt], TRUE,
^
../machine/mipssim.cc:367:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
Mult(registers[instr->rs], registers[instr->rt], FALSE,
^
../machine/mipssim.cc:367:48: warning: array subscript has type ‘char’ [-Wchar-subscripts]
Mult(registers[instr->rs], registers[instr->rt], FALSE,
^
../machine/mipssim.cc:372:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = ~(registers[instr->rs] | registers[instr->rt]);
^
../machine/mipssim.cc:372:46: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = ~(registers[instr->rs] | registers[instr->rt]);
^
../machine/mipssim.cc:372:69: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = ~(registers[instr->rs] | registers[instr->rt]);
^
../machine/mipssim.cc:376:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[instr->rs] | registers[instr->rs];
^
../machine/mipssim.cc:376:44: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[instr->rs] | registers[instr->rs];
^
../machine/mipssim.cc:376:67: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[instr->rs] | registers[instr->rs];
^
../machine/mipssim.cc:380:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rt] = registers[instr->rs] | (instr->extra & 0xffff);
^
../machine/mipssim.cc:380:44: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rt] = registers[instr->rs] | (instr->extra & 0xffff);
^
../machine/mipssim.cc:385:23: warning: array subscript has type ‘char’ [-Wchar-subscripts]
(registers[instr->rs] + instr->extra), 1, registers[instr->rt]))
^
../machine/mipssim.cc:385:64: warning: array subscript has type ‘char’ [-Wchar-subscripts]
(registers[instr->rs] + instr->extra), 1, registers[instr->rt]))
^
../machine/mipssim.cc:391:23: warning: array subscript has type ‘char’ [-Wchar-subscripts]
(registers[instr->rs] + instr->extra), 2, registers[instr->rt]))
^
../machine/mipssim.cc:391:64: warning: array subscript has type ‘char’ [-Wchar-subscripts]
(registers[instr->rs] + instr->extra), 2, registers[instr->rt]))
^
../machine/mipssim.cc:396:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[instr->rt] << instr->extra;
^
../machine/mipssim.cc:396:44: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[instr->rt] << instr->extra;
^
../machine/mipssim.cc:400:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[instr->rt] <<
^
../machine/mipssim.cc:400:44: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[instr->rt] <<
^
../machine/mipssim.cc:401:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
(registers[instr->rs] & 0x1f);
^
../machine/mipssim.cc:405:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (registers[instr->rs] < registers[instr->rt])
^
../machine/mipssim.cc:405:48: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (registers[instr->rs] < registers[instr->rt])
^
../machine/mipssim.cc:406:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = 1;
^
../machine/mipssim.cc:408:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = 0;
^
../machine/mipssim.cc:412:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (registers[instr->rs] < instr->extra)
^
../machine/mipssim.cc:413:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rt] = 1;
^
../machine/mipssim.cc:415:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rt] = 0;
^
../machine/mipssim.cc:419:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
rs = registers[instr->rs];
^
../machine/mipssim.cc:422:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rt] = 1;
^
../machine/mipssim.cc:424:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rt] = 0;
^
../machine/mipssim.cc:428:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
rs = registers[instr->rs];
^
../machine/mipssim.cc:429:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
rt = registers[instr->rt];
^
../machine/mipssim.cc:431:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = 1;
^
../machine/mipssim.cc:433:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = 0;
^
../machine/mipssim.cc:437:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[instr->rt] >> instr->extra;
^
../machine/mipssim.cc:437:44: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[instr->rt] >> instr->extra;
^
../machine/mipssim.cc:441:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[instr->rt] >>
^
../machine/mipssim.cc:441:44: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[instr->rt] >>
^
../machine/mipssim.cc:442:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
(registers[instr->rs] & 0x1f);
^
../machine/mipssim.cc:446:27: warning: array subscript has type ‘char’ [-Wchar-subscripts]
tmp = registers[instr->rt];
^
../machine/mipssim.cc:448:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = tmp;
^
../machine/mipssim.cc:452:27: warning: array subscript has type ‘char’ [-Wchar-subscripts]
tmp = registers[instr->rt];
^
../machine/mipssim.cc:453:30: warning: array subscript has type ‘char’ [-Wchar-subscripts]
tmp >>= (registers[instr->rs] & 0x1f);
^
../machine/mipssim.cc:454:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = tmp;
^
../machine/mipssim.cc:458:28: warning: array subscript has type ‘char’ [-Wchar-subscripts]
diff = registers[instr->rs] - registers[instr->rt];
^
../machine/mipssim.cc:458:51: warning: array subscript has type ‘char’ [-Wchar-subscripts]
diff = registers[instr->rs] - registers[instr->rt];
^
../machine/mipssim.cc:459:27: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (((registers[instr->rs] ^ registers[instr->rt]) & SIGN_BIT) &&
^
../machine/mipssim.cc:459:50: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (((registers[instr->rs] ^ registers[instr->rt]) & SIGN_BIT) &&
^
../machine/mipssim.cc:460:27: warning: array subscript has type ‘char’ [-Wchar-subscripts]
((registers[instr->rs] ^ diff) & SIGN_BIT)) {
^
../machine/mipssim.cc:464:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = diff;
^
../machine/mipssim.cc:468:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[instr->rs] - registers[instr->rt];
^
../machine/mipssim.cc:468:44: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[instr->rs] - registers[instr->rt];
^
../machine/mipssim.cc:468:67: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[instr->rs] - registers[instr->rt];
^
../machine/mipssim.cc:473:23: warning: array subscript has type ‘char’ [-Wchar-subscripts]
(registers[instr->rs] + instr->extra), 4, registers[instr->rt]))
^
../machine/mipssim.cc:473:64: warning: array subscript has type ‘char’ [-Wchar-subscripts]
(registers[instr->rs] + instr->extra), 4, registers[instr->rt]))
^
../machine/mipssim.cc:478:27: warning: array subscript has type ‘char’ [-Wchar-subscripts]
tmp = registers[instr->rs] + instr->extra;
^
../machine/mipssim.cc:488:33: warning: array subscript has type ‘char’ [-Wchar-subscripts]
value = registers[instr->rt];
^
../machine/mipssim.cc:491:58: warning: array subscript has type ‘char’ [-Wchar-subscripts]
value = (value & 0xff000000) | ((registers[instr->rt] >> 8) &
^
../machine/mipssim.cc:495:58: warning: array subscript has type ‘char’ [-Wchar-subscripts]
value = (value & 0xffff0000) | ((registers[instr->rt] >> 16) &
^
../machine/mipssim.cc:499:58: warning: array subscript has type ‘char’ [-Wchar-subscripts]
value = (value & 0xffffff00) | ((registers[instr->rt] >> 24) &
^
../machine/mipssim.cc:508:27: warning: array subscript has type ‘char’ [-Wchar-subscripts]
tmp = registers[instr->rs] + instr->extra;
^
../machine/mipssim.cc:518:55: warning: array subscript has type ‘char’ [-Wchar-subscripts]
value = (value & 0xffffff) | (registers[instr->rt] << 24);
^
../machine/mipssim.cc:521:53: warning: array subscript has type ‘char’ [-Wchar-subscripts]
value = (value & 0xffff) | (registers[instr->rt] << 16);
^
../machine/mipssim.cc:524:51: warning: array subscript has type ‘char’ [-Wchar-subscripts]
value = (value & 0xff) | (registers[instr->rt] << 8);
^
../machine/mipssim.cc:527:33: warning: array subscript has type ‘char’ [-Wchar-subscripts]
value = registers[instr->rt];
^
../machine/mipssim.cc:539:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[instr->rs] ^ registers[instr->rt];
^
../machine/mipssim.cc:539:44: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[instr->rs] ^ registers[instr->rt];
^
../machine/mipssim.cc:539:67: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rd] = registers[instr->rs] ^ registers[instr->rt];
^
../machine/mipssim.cc:543:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rt] = registers[instr->rs] ^ (instr->extra & 0xffff);
^
../machine/mipssim.cc:543:44: warning: array subscript has type ‘char’ [-Wchar-subscripts]
registers[instr->rt] = registers[instr->rs] ^ (instr->extra & 0xffff);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.