Segment 1 was back at 27 KB. Settings, Contacts, Channel, Home, Node, convos, messages, contacts, channels, rowlist and draw move to vmcode2: segment 1 is now 10.3 KB, segment 2 23.4 KB. tools/sect2.py adds the VM_SECT2 static declarations. Checked in the compiled code, the rules in sections.h were too cautious: literals in a vmcode2 function are emitted into vmcode2, a file's static const data and calls to unannotated functions go through the __text__ base, and taking a vmcode2 function's address (event handlers, callbacks) gives its real address. The real traps are shared extern const tables and -fwritable-strings (PC-relative into .data). tools/check_sections.py runs after every link and fails the build on any PC-relative reference from vmcode2 to outside it; python3 added to the toolchain image for it. Unicode: characters past Latin-1 all became '?', and Windows-1252 quotes and dashes had no glyph in the small font. Now arrows, check marks, stars, bullets and node-type marks map to the font's UI symbols, typographic quotes and dashes to ASCII, any emoji to a new smiley glyph, and variation selectors / zero-width joiners are dropped.
23 lines
1.2 KiB
Docker
23 lines
1.2 KiB
Docker
# Palm OS 68k build environment: prc-tools-remix (m68k-palmos-gcc), PilRC,
|
|
# and the Palm OS SDKs. The packages are amd64-only; on Apple Silicon Docker
|
|
# runs this under emulation (build/run with --platform linux/amd64), which is fine for builds this small.
|
|
FROM debian:bookworm-slim
|
|
|
|
ARG PRC_TOOLS_VER=2.3.6
|
|
ARG PILRC_TAG=2.3.91
|
|
ARG PILRC_VER=3.2.91
|
|
ARG PALM_SDK_COMMIT=1fa22066ca0f8b74949c14dd1d626294145d1c09
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends ca-certificates curl unzip make gcc libc6-dev python3-minimal \
|
|
&& curl -fsSLo /tmp/prc.deb https://github.com/jichu4n/prc-tools-remix/releases/download/v${PRC_TOOLS_VER}/prc-tools-remix_${PRC_TOOLS_VER}.bookworm_amd64.deb \
|
|
&& curl -fsSLo /tmp/pilrc.deb https://github.com/jichu4n/pilrc/releases/download/${PILRC_TAG}/pilrc_${PILRC_VER}.bookworm_amd64.deb \
|
|
&& apt-get install -y --no-install-recommends /tmp/prc.deb /tmp/pilrc.deb \
|
|
&& curl -fsSLo /tmp/sdk.zip https://github.com/jichu4n/palm-os-sdk/archive/${PALM_SDK_COMMIT}.zip \
|
|
&& unzip -q /tmp/sdk.zip -d /tmp \
|
|
&& mv /tmp/palm-os-sdk-${PALM_SDK_COMMIT} /opt/palmdev \
|
|
&& palmdev-prep -d sdk-3.5 \
|
|
&& rm -rf /tmp/*.deb /tmp/sdk.zip /var/lib/apt/lists/*
|
|
|
|
WORKDIR /src
|