forked from ppxf25tqu/nudt-compiler-cpp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
560 B
22 lines
560 B
// SysY 运行库头文件:
|
|
// - 声明运行库函数原型(供编译器生成 call 或链接阶段引用)
|
|
// - 与 sylib.c 配套,按规范逐步补齐声明
|
|
|
|
#ifndef __SYLIB_H_
|
|
#define __SYLIB_H_
|
|
|
|
#include<stdio.h>
|
|
#include<stdarg.h>
|
|
#include<sys/time.h>
|
|
/* Input & output functions */
|
|
int getint(),getch(),getarray(int a[]);
|
|
void putint(int a),putch(int a),putarray(int n,int a[]);
|
|
float getfloat();
|
|
void putfloat(float a);
|
|
int getfarray(float a[]);
|
|
void putfarray(int n,float a[]);
|
|
/* Timing functions */
|
|
void starttime();
|
|
void stoptime();
|
|
#endif
|