boot2c

Dev tools

bootloader development

SHOW HN2019

boot2c

A simple way to write standalone C programs for i386

github.com

#i386#bootloader#bare metal c#real mode#x86 boot

147points
34comments
#294of 2,195 in 2019
Top 14%of 2019 by points

How HN took it

LovedMost comments that take a side are positive

6 positive, 5 neutral or asking, 0 mixed, 1 critical, out of 12 comments about the project. Thread score +0.33.

Docs: 2 for, 0 againstExecution: 1 for, 0 againstIdea: 1 for, 0 againstPerformance: 0 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Code is short, readable and well designed

    From 1 comment
    • The code was surprisingly short and readable. If you have a minute, I’d suggest taking a peek; it’s pretty well designed.
      saagarjha on HN
  • Refreshing approach to entering the topic

    From 1 comment
    • Very refreshing approach, as someone deeply interested in this topic but without the time to dive in to the docs myself
      frank_nitti on HN

Objections

  • Targets real-address mode, so it is not really i386 but XT-era hardware

    From 1 comment
    • > they only work in the real-address mode So it's not for i386, it's for XT by the sounds of it.
      tus88 on HN

Requests

  • Add a TCP/IP stack for IoT use

    From 1 comment
    • If you could get a TCP/IP stack working, it could be used for a simple IoT device.
      ape4 on HN

Questions

  • Could a minimal version exist for x64 UEFI machines

    From 1 comment
    • I wonder what a minimal version of this would look like for x64 UEFI machines. Does anyone know whether such a project exists?
      Udo on HN

Alternatives named

  • Turbo C

    From 1 comment
    • I feel your pain, so sorry that you still need to support the .code16gcc hack! My first approach was actually to avoid GCC/clang altogether, and use Turbo C instead. It came with…
      qx89l4 on HN
  • OpenWatcom

    From 1 comment
    • You could also use OpenWatcom, I think. https://github.com/open-watcom/open-watcom-v2
      ofrzeta on HN
  • Unikernels such as Hermitcore

    From 1 comment
    • Isn't that a unikernel [0]? I've been wanting to try Hermitcore [1] for a while. [0] https://en.wikipedia.org/wiki/Unikernel [1] https://github.com/hermitcore/libhermit
      nodefourtytwo on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/21114491)