mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 08:42:24 +00:00
new system types tested on x86 and armv6, bootstrap binaries updated. --
noch
This commit is contained in:
parent
38794808ac
commit
5a6725d7da
14 changed files with 52 additions and 5 deletions
|
|
@ -12,6 +12,7 @@ uses double # as concatenation operator
|
|||
*/
|
||||
|
||||
#include <alloca.h>
|
||||
#include <stdint.h> /* for type sizes -- noch */
|
||||
//#include <string.h>
|
||||
|
||||
extern void *memcpy(void *dest, const void *src, unsigned long n);
|
||||
|
|
@ -52,6 +53,10 @@ typedef void *SYSTEM_PTR;
|
|||
//#define *SYSTEM_PTR void
|
||||
//typedef unsigned char SYSTEM_BYTE;
|
||||
#define SYSTEM_BYTE unsigned char
|
||||
typedef int8_t SYSTEM_INT8;
|
||||
typedef int16_t SYSTEM_INT16;
|
||||
typedef int32_t SYSTEM_INT32;
|
||||
typedef int64_t SYSTEM_INT64;
|
||||
|
||||
/* runtime system routines */
|
||||
extern long SYSTEM_DIV();
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ uses double # as concatenation operator
|
|||
*/
|
||||
#include <stdlib.h>
|
||||
//#include <alloca.h>
|
||||
#include <stdint.h> /* for type sizes -- noch */
|
||||
//#include <string.h>
|
||||
|
||||
extern void *memcpy(void *dest, const void *src, unsigned long n);
|
||||
|
|
@ -52,6 +53,10 @@ typedef void *SYSTEM_PTR;
|
|||
//#define *SYSTEM_PTR void
|
||||
//typedef unsigned char SYSTEM_BYTE;
|
||||
#define SYSTEM_BYTE unsigned char
|
||||
typedef int8_t SYSTEM_INT8;
|
||||
typedef int16_t SYSTEM_INT16;
|
||||
typedef int32_t SYSTEM_INT32;
|
||||
typedef int64_t SYSTEM_INT64;
|
||||
|
||||
/* runtime system routines */
|
||||
extern long SYSTEM_DIV();
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ uses double # as concatenation operator
|
|||
*/
|
||||
|
||||
#include <alloca.h>
|
||||
#include <stdint.h> /* for type sizes -- noch */
|
||||
|
||||
//extern void *memcpy(void *dest, const void *src, long n);
|
||||
extern void *memcpy(void *dest, const void *src, size_t n);
|
||||
|
|
@ -37,6 +38,10 @@ typedef double LONGREAL;
|
|||
typedef unsigned long SET;
|
||||
typedef void *SYSTEM_PTR;
|
||||
typedef unsigned char SYSTEM_BYTE;
|
||||
typedef int8_t SYSTEM_INT8;
|
||||
typedef int16_t SYSTEM_INT16;
|
||||
typedef int32_t SYSTEM_INT32;
|
||||
typedef int64_t SYSTEM_INT64;
|
||||
|
||||
/* runtime system routines */
|
||||
extern long SYSTEM_DIV();
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ uses double # as concatenation operator
|
|||
*/
|
||||
|
||||
#include <alloca.h>
|
||||
#include <stdint.h> /* for type sizes -- noch */
|
||||
|
||||
//extern void *memcpy(void *dest, const void *src, long n);
|
||||
extern void *memcpy(void *dest, const void *src, size_t n);
|
||||
|
|
@ -37,6 +38,10 @@ typedef double LONGREAL;
|
|||
typedef unsigned long SET;
|
||||
typedef void *SYSTEM_PTR;
|
||||
typedef unsigned char SYSTEM_BYTE;
|
||||
typedef int8_t SYSTEM_INT8;
|
||||
typedef int16_t SYSTEM_INT16;
|
||||
typedef int32_t SYSTEM_INT32;
|
||||
typedef int64_t SYSTEM_INT64;
|
||||
|
||||
/* runtime system routines */
|
||||
extern long SYSTEM_DIV();
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ uses double # as concatenation operator
|
|||
*/
|
||||
|
||||
#include <alloca.h>
|
||||
#include <stdint.h> /* for type sizes -- noch */
|
||||
|
||||
//extern void *memcpy(void *dest, const void *src, long n);
|
||||
extern void *memcpy(void *dest, const void *src, size_t n);
|
||||
|
|
@ -37,6 +38,10 @@ typedef double LONGREAL;
|
|||
typedef unsigned long SET;
|
||||
typedef void *SYSTEM_PTR;
|
||||
typedef unsigned char SYSTEM_BYTE;
|
||||
typedef int8_t SYSTEM_INT8;
|
||||
typedef int16_t SYSTEM_INT16;
|
||||
typedef int32_t SYSTEM_INT32;
|
||||
typedef int64_t SYSTEM_INT64;
|
||||
|
||||
/* runtime system routines */
|
||||
extern long SYSTEM_DIV();
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ uses double # as concatenation operator
|
|||
*/
|
||||
|
||||
#include <alloca.h>
|
||||
#include <stdint.h> /* for type sizes -- noch */
|
||||
|
||||
extern void *memcpy(void *dest, const void *src, unsigned long n);
|
||||
extern void *malloc(unsigned long size);
|
||||
|
|
@ -51,6 +52,10 @@ typedef void *SYSTEM_PTR;
|
|||
//#define *SYSTEM_PTR void
|
||||
//typedef unsigned char SYSTEM_BYTE;
|
||||
#define SYSTEM_BYTE unsigned char
|
||||
typedef int8_t SYSTEM_INT8;
|
||||
typedef int16_t SYSTEM_INT16;
|
||||
typedef int32_t SYSTEM_INT32;
|
||||
typedef int64_t SYSTEM_INT64;
|
||||
|
||||
/* runtime system routines */
|
||||
extern long SYSTEM_DIV();
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ uses double # as concatenation operator
|
|||
*/
|
||||
|
||||
#include <alloca.h>
|
||||
#include <stdint.h> /* for type sizes -- noch */
|
||||
|
||||
//extern void *memcpy(void *dest, const void *src, long n);
|
||||
extern void *memcpy(void *dest, const void *src, size_t n);
|
||||
|
|
@ -37,6 +38,10 @@ typedef double LONGREAL;
|
|||
typedef unsigned long SET;
|
||||
typedef void *SYSTEM_PTR;
|
||||
typedef unsigned char SYSTEM_BYTE;
|
||||
typedef int8_t SYSTEM_INT8;
|
||||
typedef int16_t SYSTEM_INT16;
|
||||
typedef int32_t SYSTEM_INT32;
|
||||
typedef int64_t SYSTEM_INT64;
|
||||
|
||||
/* runtime system routines */
|
||||
extern long SYSTEM_DIV();
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ uses double # as concatenation operator
|
|||
*/
|
||||
|
||||
#include <alloca.h>
|
||||
#include <stdint.h> /* for type sizes -- noch */
|
||||
|
||||
//extern void *memcpy(void *dest, const void *src, long n);
|
||||
extern void *memcpy(void *dest, const void *src, size_t n);
|
||||
|
|
@ -37,6 +38,10 @@ typedef double LONGREAL;
|
|||
typedef unsigned long SET;
|
||||
typedef void *SYSTEM_PTR;
|
||||
typedef unsigned char SYSTEM_BYTE;
|
||||
typedef int8_t SYSTEM_INT8;
|
||||
typedef int16_t SYSTEM_INT16;
|
||||
typedef int32_t SYSTEM_INT32;
|
||||
typedef int64_t SYSTEM_INT64;
|
||||
|
||||
/* runtime system routines */
|
||||
extern long SYSTEM_DIV();
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ uses double # as concatenation operator
|
|||
*/
|
||||
|
||||
#include <alloca.h>
|
||||
#include <stdint.h> /* for type sizes -- noch */
|
||||
|
||||
//extern void *memcpy(void *dest, const void *src, long n);
|
||||
extern void *memcpy(void *dest, const void *src, size_t n);
|
||||
|
|
@ -37,6 +38,10 @@ typedef double LONGREAL;
|
|||
typedef unsigned long SET;
|
||||
typedef void *SYSTEM_PTR;
|
||||
typedef unsigned char SYSTEM_BYTE;
|
||||
typedef int8_t SYSTEM_INT8;
|
||||
typedef int16_t SYSTEM_INT16;
|
||||
typedef int32_t SYSTEM_INT32;
|
||||
typedef int64_t SYSTEM_INT64;
|
||||
|
||||
/* runtime system routines */
|
||||
extern long SYSTEM_DIV();
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@ uses double # as concatenation operator
|
|||
*/
|
||||
|
||||
#include <alloca.h>
|
||||
#include <stdint.h>
|
||||
#include <stdint.h> /* for type sizes -- noch */
|
||||
|
||||
extern void *memcpy(void *dest, const void *src, unsigned long n);
|
||||
extern void *malloc(unsigned long size);
|
||||
extern void exit(int status);
|
||||
|
|
@ -51,10 +52,11 @@ typedef void *SYSTEM_PTR;
|
|||
//#define *SYSTEM_PTR void
|
||||
//typedef unsigned char SYSTEM_BYTE;
|
||||
#define SYSTEM_BYTE unsigned char
|
||||
#define SYSTEM_INT8 int8_t
|
||||
#define SYSTEM_INT16 int16_t
|
||||
#define SYSTEM_INT32 int32_t
|
||||
#define SYSTEM_INT64 int64_t
|
||||
typedef int8_t SYSTEM_INT8;
|
||||
typedef int16_t SYSTEM_INT16;
|
||||
typedef int32_t SYSTEM_INT32;
|
||||
typedef int64_t SYSTEM_INT64;
|
||||
|
||||
/* runtime system routines */
|
||||
extern long SYSTEM_DIV();
|
||||
extern long SYSTEM_MOD();
|
||||
|
|
|
|||
BIN
voc
BIN
voc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue