How do I set up a C++ kernel with clang/LLVM ?

This page summarizes the projects mentioned and recommended in the original post on /r/osdev

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • 64bit-os-tutorial

    This OS Tutorial expands on the fundamental concepts covered in cfenollosa/os-tutorial and covers entering long mode on the x86_64 architecture. It also uses clang rather than relying on an external crosscompiler. I plan on keeping it up to date, so feel free to submit an issue!

  • So I have been following this tutorial on writing a 64-bit OS from scratch. At this point, they show how to build and link to a basic C kernel, which is all good, but I would rather write it in C++. However, after trying to modify the makefile to compile C++ files (by changing the compiler to clang++ and changing all the .c to .cpp), as well as putting extern "C" in front of the main() function , I get an error from ld saying ld.lld: error: undefined symbol: main. I understand that there are things lacking in my build process, but I can't find which ones; is it some flags I am missing, or a more involved set of build commands ? I really would like to stick to clang/LLVM, if possible, rather than cross-compiling with GCC.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Operating System Development: Where to Start?

    2 projects | /r/osdev | 9 Jan 2021
  • Added VGA driver to my kernel.

    2 projects | /r/osdev | 4 Jan 2021
  • Chrysalisp: Parallel OS with GUI, Terminal, OO Assembler, C-Script and Lisp

    1 project | news.ycombinator.com | 12 Apr 2024
  • ChrysaLisp GUI Demo [video]

    2 projects | news.ycombinator.com | 5 Apr 2024
  • Show HN: A (marginally) useful x86-64 ELF executable in 466 bytes

    1 project | news.ycombinator.com | 27 Mar 2024