struct.c
来自「Newlib 嵌入式 C库 标准实现代码」· C语言 代码 · 共 66 行
C
66 行
/* Oki bug report, no number. Here's the output the error generates. gcc -c -g -ansi oki008.c -o oki008.o -msoft-float oki008.c: In function `Proc0': oki008.c:50: internal error--insn does not satisfy its constraints: (insn 37 35 24 (set (mem:DF (post_inc:DF (reg:SI 1 %r1))) (reg:DF 48 %fr12)) 94 {reload_outdf+2} (nil) (nil)) gcc: Internal compiler error: program cc1 got fatal signal 6 */#include <stdio.h>typedef int Enumeration;typedef int OneToFifty;typedef char String30[31];struct Record{ struct Record *PtrComp; Enumeration Discr; Enumeration EnumComp; OneToFifty IntComp; String30 StringComp;};typedef struct Record RecordType;typedef RecordType * RecordPtr;typedef int boolean;#include <stdio.h>char buf[0x10000];char *pbuf = buf;char *_malloc(size){ char *p; p = pbuf; pbuf += size; if (pbuf >= &buf[sizeof (buf)]) { printf("_malloc error\n"); return (0); } return (p);}main(){ Proc0(); pass ("struct"); fflush (stdout); return (0);}RecordPtr PtrGlbNext;Proc0(){ extern char *_malloc(); register unsigned int i; PtrGlbNext = (RecordPtr) _malloc(sizeof(RecordType));}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?