frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Tell HN: Compiling using TurboC++ MSDos 2.0 using Win95 in DOSBOX-x

2•lihaciudanieljr•3h ago
Tell HN: Compiling with Turbo C++ on MS-DOS 2.0 (inside Windows 95, via DOSBox-X)

I spent the last days rebuilding a very old toolchain stack, mostly out of curiosity and partly for education/reverse-engineering reasons.

The stack:

Turbo C++ (Borland)

Target: MS-DOS 2.0–era constraints

Running inside Windows 95

Emulated with DOSBox-X (not vanilla DOSBox)

Why DOSBox-X? Because it actually cares about:

real DOS boot flows

disk images (FAT12/FAT16) instead of fake mounts

Windows 9x compatibility

correct INT/DPMI/EMS/XMS behavior

Vanilla DOSBox is great for games, but it lies too much for this kind of experiment.

---

Why do this in 2026?

Because modern toolchains hide everything.

I wanted:

to see what the compiler actually emits

to understand what a “hello world” really costs

to watch how 16-bit memory models, segments, and relocation work

to verify that the binary actually runs under real DOS/Win9x expectations, not a modern CRT fantasy

Turbo C++ is perfect for this because:

it’s brutally honest

it emits readable ASM

it forces you to think in memory models (tiny/small/medium/large/huge)

it doesn’t protect you from yourself

---

Setup notes (important)

I’m not using mount c folder

I’m using a real HDD image (.img) formatted as FAT

DOSBox-X boots DOS → Windows 95 → Turbo C++

AUTOEXEC.BAT and CONFIG.SYS are real, not simulated

This matters if you care about:

file layout

executable headers

segment limits

boot realism

---

What surprised me

How little you need to get useful binaries

How fast Turbo C++ compiles compared to modern compilers

How transparent the whole pipeline is

How much knowledge we lost by abstracting this away

Modern dev feels like programming through 5 layers of noise. This feels like touching the metal — even in emulation.

---

Why this might interest HN

If you care about:

compiler education

retro-computing

OS boot chains

reproducible builds

understanding what your tools actually do

…this kind of setup is incredibly enlightening.

Not nostalgia. More like archaeology with instruments.

If there’s interest, I can follow up with:

exact DOSBox-X config

disk image layout

Turbo C++ version quirks

memory model comparisons

ASM output examples

Thanks for reading.

Bespoke Software Is the Future

https://fzakaria.com/2026/01/01/bespoke-software-is-the-future
1•ingve•3m ago•0 comments

Reflection Winter Update

https://modal.cx/blog/reflection-winter-update/
1•vishnukvmd•3m ago•0 comments

FreeBSD: Home NAS, part 1 – configuring ZFS mirror (RAID1)

https://rtfm.co.ua/en/freebsd-home-nas-part-1-configuring-zfs-mirror-raid1/
1•todsacerdoti•5m ago•0 comments

Why did the PC memory chicken game keep repeating–and who ultimately survived?

https://www.semiconsam.com/p/why-did-the-memory-chicken-game-keep
1•walterbell•6m ago•0 comments

Show HN: A small game localization tool for indie devs (built with Gemini)

https://github.com/GardenAtDesk/gemini-game-translator
1•GardenAtDesk•7m ago•1 comments

Show HN: DentistAI – AI receptionist that answers dental practice calls 24/7

https://dentistai.com
1•callally_colin•7m ago•0 comments

Beepy by Sqfmi

https://beepy.sqfmi.com/
1•thunderbong•12m ago•0 comments

The Mass Shooting Tracker is a crowd-sourced database of U.S. mass shootings

https://www.massshootingtracker.site/
3•gjvc•18m ago•1 comments

Dinosaur Asteroid hit the place capable of triggering mass extinction (2017)

https://www.bbc.com/news/science-environment-39922998
1•rgun•19m ago•1 comments

Inflated data lakehouse costs and latencies? – Blame S3's choice of HTTP/1.1

https://www.onehouse.ai/blog/inflated-data-lakehouse-costs-and-latencies-blame-s3s-choice-of-http...
1•links135•23m ago•0 comments

Baidu's AI Chip Unit Kunlunxin Plans Hong Kong Listing

https://www.wsj.com/business/baidus-ai-chip-unit-kunlunxin-plans-hong-kong-listing-8542b599
1•doppp•26m ago•0 comments

Kraft Heinz Lost Its Lock on Mac and Cheese–and American Shoppers

https://www.wsj.com/business/retail/kraft-heinz-mac-cheese-split-ceo-dccc9217
1•fortran77•31m ago•1 comments

United States exports "you'll own nothing and be happy" to Chile (i.e. DMCA) [video]

https://www.youtube.com/watch?v=YANxFsn-YW4
1•da02•32m ago•0 comments

Show HN: Bouquin, an encrypted planner app written in PySide6 and SQLCipher

https://git.mig5.net/mig5/bouquin#readme
1•_mig5•33m ago•0 comments

Snapshot of software job openings (US) at end of 2025T

https://jobswithgpt.com/blog/software-engineering_jobs_december_2025/
2•sp1982•35m ago•1 comments

How to Export Life to Mars

https://www.economist.com/science-and-technology/2025/12/30/how-to-export-life-to-mars
1•andsoitis•35m ago•0 comments

iPhone swelled during flight, back to normal after landing

https://www.old.reddit.com/r/iphone/s/QKzpS42ayb
2•rishikeshs•36m ago•0 comments

Ukraine fakes commander's death to trick Russia into paying $500k bounty

https://www.telegraph.co.uk/world-news/2026/01/01/ukrainian-spies-fake-commander-death-trick-russia/
1•cwwc•40m ago•0 comments

A famous motif started out a failure. Now 130, it's become a global fashion flex

https://www.ft.com/content/85d931a6-1475-431e-86e3-d0d34b08295d
1•cwwc•43m ago•0 comments

Designing type-safe sync/async mode support in TypeScript

https://hackers.pub/@hongminhee/2026/typescript-sync-async-type-safety
1•dahlia•49m ago•0 comments

Photographing the hidden world of slime mould

https://www.bbc.com/news/articles/c9d9409p76qo
1•1659447091•56m ago•0 comments

Grok is enabling mass sexual harassment on Twitter

https://www.seangoedecke.com/grok-deepfakes/
5•gfysfm•57m ago•0 comments

Fracttalix v2.5 – open-source tool for fractal/rhythmic time-series

https://github.com/thomasbrennan/Fracttalix
1•Fracttalix•1h ago•1 comments

Writing Doom – Award-Winning Short Film on Superintelligence (2024) [video]

https://www.youtube.com/watch?v=xfMQ7hzyFW4
1•bicepjai•1h ago•0 comments

Human State Infrastructure for Modern Systems

https://synheart.ai/blog/introducing-human-state-infrastructure-for-modern-systems
4•izzysyn•1h ago•1 comments

Show HN: Analyse 1M rows of CSV on device

https://app.statpecker.com/welcome
3•gopal_virtual•1h ago•0 comments

The first new compass since 1936 [video]

https://www.youtube.com/watch?v=eiDhbZ8-BZI
2•quantummagic•1h ago•1 comments

Show HN: I built an AI dispatcher for emergency plumbers

https://local-lift.onrender.com
2•callally_colin•1h ago•0 comments

Show HN: Social Network for Gamers

https://sumthings.com/feed
2•cedel2k1•1h ago•0 comments

Real Biological Clock Is You're Going to Die

https://hmmdaily.com/2018/10/18/your-real-biological-clock-is-youre-going-to-die/
14•moultano•1h ago•4 comments