From 44cf0a17a111345675d1bbd38b5da85ce5cc9837 Mon Sep 17 00:00:00 2001 From: Stas Sergeev Date: Tue, 26 Sep 2017 03:10:43 +0300 Subject: [PATCH] fix and enable i386 support This gives ~5K size reduction with bc3.1. Today no one uses pre-i386 CPUs so there is no good reason against having an extra optimization. --- config.b | 4 ++-- config.m | 10 +++++----- mkfiles/generic.mak | 2 ++ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/config.b b/config.b index 7d87aa0..655e2c1 100644 --- a/config.b +++ b/config.b @@ -105,9 +105,9 @@ set XUPX=upx --8086 --best :* select your default target: required CPU and what FAT system to support :********************************************************************** -set XCPU=86 +:- set XCPU=86 :- set XCPU=186 -:- set XCPU=386 +set XCPU=386 :- set XFAT=16 set XFAT=32 diff --git a/config.m b/config.m index 0c0721f..5f89492 100644 --- a/config.m +++ b/config.m @@ -15,8 +15,8 @@ XNASM=nasm #********************************************************************** #- where is the BASE dir of your compiler(s) ?? #********************************************************************** - -# if WATCOM maybe you need to set your WATCOM environment variables + +# if WATCOM maybe you need to set your WATCOM environment variables # and path ifndef WATCOM WATCOM=$(HOME)/watcom @@ -28,7 +28,7 @@ endif #********************************************************************** XUPX=upx --8086 --best -# or use +# or use #unexport XUPX # without the # if you don't want to use it @@ -52,9 +52,9 @@ XUPX=upx --8086 --best # select your default target: required CPU and what FAT system to support #********************************************************************* -XCPU=86 +# XCPU=86 # XCPU=186 -# XCPU=386 +XCPU=386 # XFAT=16 XFAT=32 diff --git a/mkfiles/generic.mak b/mkfiles/generic.mak index eca1bb0..495ad2f 100644 --- a/mkfiles/generic.mak +++ b/mkfiles/generic.mak @@ -9,9 +9,11 @@ TARGETOPT=-1- !if $(XCPU) == 186 TARGETOPT=-1 +ALLCFLAGS=$(ALLCFLAGS) -DI186 !endif !if $(XCPU) == 386 TARGETOPT=-3 +ALLCFLAGS=$(ALLCFLAGS) -DI386 !endif !if $(XFAT) == 32