Skip to content

Commit

Permalink
fix and enable i386 support
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stsp authored and PerditionC committed Dec 7, 2017
1 parent 8187fd8 commit 44cf0a1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions config.b
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions config.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#**********************************************************************
#- 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
Expand All @@ -28,7 +28,7 @@
#**********************************************************************
XUPX=upx --8086 --best

# or use
# or use
#unexport XUPX
# without the # if you don't want to use it

Expand All @@ -52,9 +52,9 @@
# 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
Expand Down
2 changes: 2 additions & 0 deletions mkfiles/generic.mak
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 44cf0a1

Please sign in to comment.