Git Product home page Git Product logo

jacqueline's Introduction

Jacqueline

Jacqueline is an experimental bootloader written in Pascal (Free Pascal dialect) written for the i386 architecture, just because. Note that, unlike NativeOS, I have no plans to further develop Jacqueline once the system compiles and I'm able to start the image using an emulator.

Why Pascal?

Even while Pascal wasn't written with low-level programming in mind, it is nonetheless possible to do low-level systems programming with the Free Pascal dialect, as it supports features that are present in other low-level languages such as C, C++ or even Rust in unsafe mode, such as:

  • Pointers, using the ^ operator (such as var intptr: ^integer).
  • Memory addresses, using the @ operator (let var foo: integer, then @foo yields the memory address of foo as an ^integer.
  • Inline assembly interfacing, through the asm keyword, ร  la C. In fact, I find more intuitive to move data between registers and variables in Free Pascal than in GNU C.

Free Pascal is able to generate standard object files (*.o), encoded in popular executable file formats such as PE and ELF, and thus, it is possible to make object files written originally in diverse languages such as C, Pascal or Assembly to interface each other.

Setting up

Requirements

  • An i386-elf toolchain (required for compiling the Assembly code and linking the final kernel image).
  • A Free Pascal distribution with 32 bit support (i.e., ppc386 is provided).
  • BSD make or GNU make.
  • QEMU to run the kernel.

How to

make qemu

jacqueline's People

Contributors

danirod avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.