* gcc flags: add -march=pentium-mmx -fno-rtti
* menuetlibc: fix printf, sprintf * menuetlibc: alias clock() to sysfn 26.9. Not exactly what is required by POSIX, but better than zero * autobuild games/checkers git-svn-id: svn://kolibrios.org@5123 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -4,7 +4,11 @@
|
||||
#undef assert
|
||||
#undef unimpl
|
||||
|
||||
#ifdef NDEBUG
|
||||
#define assert(test) /*nothing*/
|
||||
#else
|
||||
#define assert(test) ((void)((test)||(__dj_assert(#test,__FILE__,__LINE__),0)))
|
||||
#endif
|
||||
#define unimpl() __dj_unimp("Called unimplemented function in file \"" __FILE__ "\"\n")
|
||||
|
||||
#ifndef __dj_include_assert_h_
|
||||
|
@@ -10,10 +10,7 @@ extern "C" {
|
||||
|
||||
#ifndef __dj_ENFORCE_ANSI_FREESTANDING
|
||||
|
||||
/* 65536(tics/hour) / 3600(sec/hour) * 5(scale) = 91.02
|
||||
The 5 is to make it a whole number (18.2*5=91) so that
|
||||
floating point ops aren't required to use it. */
|
||||
#define CLOCKS_PER_SEC 91
|
||||
#define CLOCKS_PER_SEC 100
|
||||
|
||||
#include <sys/djtypes.h>
|
||||
|
||||
|
@@ -68,7 +68,7 @@ FOLDERS = {
|
||||
"termios",
|
||||
}
|
||||
|
||||
CFLAGS="-Os -fno-stack-check -fno-stack-protector -mno-stack-arg-probe -fno-ident -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpreferred-stack-boundary=2"
|
||||
CFLAGS="-Os -fno-stack-check -fno-stack-protector -mno-stack-arg-probe -fno-ident -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpreferred-stack-boundary=2 -march=pentium-mmx"
|
||||
OBJS={}
|
||||
for i,v in ipairs(FOLDERS) do
|
||||
tup.append_table(OBJS,
|
||||
|
@@ -1,5 +1,6 @@
|
||||
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <libc/file.h>
|
||||
|
||||
int
|
||||
|
@@ -1,5 +1,6 @@
|
||||
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <limits.h>
|
||||
#include <libc/file.h>
|
||||
|
||||
|
@@ -36,7 +36,6 @@ extern char __menuet__app_param_area[];
|
||||
void __crt1_startup(void)
|
||||
{
|
||||
init_brk();
|
||||
if(__menuet__app_param_area[0]!='\0')
|
||||
__crt0_setup_arguments();
|
||||
dosemu_inithandles();
|
||||
init_dir_stack();
|
||||
|
@@ -6,5 +6,7 @@
|
||||
|
||||
clock_t clock(void)
|
||||
{
|
||||
return 0;
|
||||
unsigned result;
|
||||
__asm__ __volatile__("int $0x40" : "=a"(result) : "a"(26), "b"(9));
|
||||
return result;
|
||||
}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
if tup.getconfig('NO_GCC') ~= "" then return end
|
||||
CFLAGS = "-Os -fno-stack-check -fno-stack-protector -mno-stack-arg-probe -fno-ident -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpreferred-stack-boundary=2"
|
||||
CFLAGS = "-Os -fno-stack-check -fno-stack-protector -mno-stack-arg-probe -fno-ident -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpreferred-stack-boundary=2 -march=pentium-mmx"
|
||||
OBJS = tup.foreach_rule({"*.cpp", extra_inputs = {"../../config.h"}},
|
||||
'kos32-gcc -c -I../../include -D__DEV_CONFIG_H=\\"../../config.h\\" ' .. CFLAGS .. " -o %o %f",
|
||||
"%B.o")
|
||||
|
@@ -1,5 +1,5 @@
|
||||
if tup.getconfig('NO_GCC') ~= "" then return end
|
||||
CFLAGS="-D_USE_LIBM_MATH_H -Os -fno-stack-check -fno-stack-protector -mno-stack-arg-probe -fno-ident -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpreferred-stack-boundary=2"
|
||||
CFLAGS="-D_USE_LIBM_MATH_H -Os -fno-stack-check -fno-stack-protector -mno-stack-arg-probe -fno-ident -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpreferred-stack-boundary=2 -march=pentium-mmx"
|
||||
OBJS = tup.foreach_rule({"*.c", extra_inputs = {"../../config.h"}},
|
||||
'kos32-gcc -c -I../../include -D__DEV_CONFIG_H=\\"../../config.h\\" ' .. CFLAGS .. ' -o %o %f',
|
||||
"%B.o")
|
||||
|
@@ -28,7 +28,7 @@ static char rcsid[] = "$Id: k_standard.c,v 1.4 1994/08/10 20:31:44 jtc Exp $";
|
||||
#undef fflush
|
||||
#endif /* !defined(_USE_WRITE) */
|
||||
|
||||
inline int fputs(const char* str, FILE* f) { return -1; }
|
||||
#define fputs /*nothing*/
|
||||
|
||||
#ifdef __STDC__
|
||||
static const double zero = 0.0; /* used as const */
|
||||
|
Reference in New Issue
Block a user