Changeset 160


Ignore:
Timestamp:
Apr 8, 2017, 12:28:00 AM (8 years ago)
Author:
Ben Rietbroek
Message:

Set DEBUG_LEVEL=2 for building -- catch JWasm SIZE bug [v1.1.1-testing]

With -W0, JWasm does not complain about stuff like 'mov [bx], 1'.
With -W4, JWasm does complain and states it assumes BYTE, and correct
code is generated. With 'add [bx], 1' however, assuming BYTE is stated
but WORD code is generated. This is a bug in JWasm v2.06d.
With DEBUG_LEVEL=2, such stuff is catched and flagged as an error.

Also removed the debug option from the linker flags, because they
produce an oversized image. They are not used anyway.

CAUTION:
This is a testbuild !
AirBoot uses the BIOS to access disks and a small coding error can trash
partition tables or other vital disk structures. You are advised to make
backups of TRACK0 and EBRs before using this testbuild. More info at:
https://rousseaux.github.io/netlabs.air-boot/pdf/AirBoot-v1.1.0-manual.pdf

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bootcode/Makefile

    r74 r160  
    5454# assembler / compiler / linker flags and define jammed-in constants
    5555# to influence source assembly / compilation.
    56 DEBUG_LEVEL=0
     56DEBUG_LEVEL=2
    5757MAX_DEBUG_LEVEL=2
    5858
     
    161161# -Zi   = symbolic debug info
    162162ASM_FLAGS_D0=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -W0 -Cp -zcw -Fo$^. -Sa $(JWASM_LIST_FILE) -Fw$^&.err
    163 ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -W4 -Cp -zcw -Zd -Zi -Fo$^. -Sa $(JWASM_LIST_FILE) -Fw$^&.err
    164 ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -W4 -Cp -zcw -Zd -Zi -Fo$^. -Sa $(JWASM_LIST_FILE) -Fw$^&.err
     163ASM_FLAGS_D1=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -W4 -Cp -zcw -Fo$^. -Sa $(JWASM_LIST_FILE) -Fw$^&.err
     164ASM_FLAGS_D2=-DDEBUG_LEVEL=$(DEBUG_LEVEL) -DJWASM -q -WX -Cp -zcw -Fo$^. -Sa $(JWASM_LIST_FILE) -Fw$^&.err
    165165# Workaround for JWasm list-file generation.
    166166# Generate the list-file on a local drive so JWasm doen't take forever.
     
    230230LNK=wlink
    231231LNK_FLAGS_D0=op q op v disa {1014 1023} op map=$^&.map
    232 LNK_FLAGS_D1=op q op v d all op map=$^&.map
    233 LNK_FLAGS_D2=op q op v d all op map=$^&.map
     232#~ LNK_FLAGS_D1=op q op v d all op map=$^&.map
     233#~ LNK_FLAGS_D2=op q op v d all op map=$^&.map
     234LNK_FLAGS_D1=op q op v op map=$^&.map
     235LNK_FLAGS_D2=op q op v op map=$^&.map
    234236LNK_FLAGS=$(LNK_FLAGS_D$(DEBUG_LEVEL))
    235237
  • trunk/include/version.h

    r147 r160  
    3232#define     BLDLVL_YEAR             "2017"
    3333#define     BLDLVL_MONTH            "04"
    34 #define     BLDLVL_DAY              "05"
     34#define     BLDLVL_DAY              "06"
    3535// Build time
    3636//~ #define     BLDLVL_HOURS            "01"
  • trunk/include/version.inc

    r147 r160  
    7070AB_YEAR             EQU     2017h
    7171AB_MONTH            EQU     04h
    72 AB_DAY              EQU     05h
     72AB_DAY              EQU     06h
    7373
    7474; The Hours, Minutes and Seconds, again in BCD for easy manipulation.
Note: See TracChangeset for help on using the changeset viewer.