add a bunch of code and a ton of stub files for later

This commit is contained in:
Ash Wolf
2022-11-20 00:07:22 -05:00
parent 9a46dd0e2e
commit 9d2728a560
190 changed files with 23694 additions and 1175 deletions

View File

@@ -1,6 +1,9 @@
#include "compiler.h"
#include "compiler/objects.h"
#include "compiler/Registers.h"
#include "compiler/RegisterInfo.h"
#include "compiler/CParser.h"
#include "compiler/PCode.h"
#include "compiler/CompilerTools.h"
#include "compiler/objects.h"
// haven't checked this object file for .data stuff yet
@@ -30,7 +33,7 @@ typedef struct ModifiedRegisters {
} ModifiedRegisters;
static ModifiedRegisters *mod_regs_table[128];
void init_registers() {
void init_registers(void) {
char rclass;
int j;
@@ -117,7 +120,7 @@ short obtain_nonvolatile_register(char rclass) {
return best;
}
void open_temp_registers() {
void open_temp_registers(void) {
int rclass;
for (rclass = 0; (char)rclass < RegClassMax; rclass++) {
@@ -135,7 +138,7 @@ void open_temp_registers() {
}*/
}
void check_temp_registers() {
void check_temp_registers(void) {
char rclass;
if (!optimizing) {
@@ -148,7 +151,7 @@ void check_temp_registers() {
}
}
void close_temp_registers() {
void close_temp_registers(void) {
char rclass;
for (rclass = 0; rclass < RegClassMax; rclass++) {
@@ -159,7 +162,7 @@ void close_temp_registers() {
}
}
int count_scratch_registers() {
int count_scratch_registers(void) {
int rclass;
int count;
@@ -169,7 +172,7 @@ int count_scratch_registers() {
return count;
}
void init_modified_registers() {
void init_modified_registers(void) {
int i = 0;
for (i = 0; i < 128; i++)