limine
ccan
Our great sponsors
limine | ccan | |
---|---|---|
20 | 13 | |
1,584 | 1,045 | |
6.5% | - | |
9.5 | 3.4 | |
10 days ago | 2 months ago | |
C | C | |
BSD 2-clause "Simplified" License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
limine
-
It's far from clear how grub package updates work on Ubuntu
I assume this person meant to say `Limine'.
It's what I use for dualbooting Windows and Linux. It's really easy to Install, Use & Understand.
https://limine-bootloader.org/
-
Limine a dog with fleas just died
They also publish a PHILOSOPHY.md page in their MS-source-git (github) that is, which is clearly offensive to us and many linux users:
-
Problem loading GDT in a x86-64 kernel
I'm using Limine for bootloader, and in its documentation, in the Protocol page, we have:
- Limine is an advanced, portable, multiprotocol bootloader
- Looking for boot manager recommendations
-
Getting the memory size with Limine
Hello! While reading the Limine protocol specification i noticed that it says that "all non-usable entries (including kernel/modules) are not guaranteed any alignment, nor is it guaranteed that they do not overlap other entries". How am I supposed to get the memory size then? If the memory map entries can overlap, then summing their lengths won't work. Any help is appreciated, thanks in advance.
-
The *nix Compass
That's the Limine bootloader
-
How do I make a bootloader that boots into a c kernel
It's way easier to use a pre-existing bootloader. I recommend Limine. It has it's own boot protocol that's designed for x86_64. You don't need any additional setup as it's already booted to long mode unlike Multiboot which needs you to switch to long mode since it's booted in protected mode. You can find an example kernel here.
-
MaslOS
It uses Limine as the Bootloader but I used Ponchos OS Dev Playlist as a base.
- Is grub grub-efi lilo syslinux TOO MUCH - try Limine
ccan
-
Memory leak proof every C program
Hilarious!
But I remember the first time I saw such a program which never freed anything: jitterbug, the simple bug tracker which ran as a CGI script.
It indeed allows a very simple style!
Meanwhile, use ccan/tal (https://github.com/rustyrussell/ccan/blob/master/ccan/tal/_i...) and be happy :)
-
Popular Data Structure Libraries in C ?
There's CCAN, maintained by kernel hacker Rusty Russell: http://ccodearchive.net/
-
My review of the C standard library in practice
Please note that the above link has been claimed by squatters and isn’t the right link for CCAN anymore! The maintainer suggests [1] just using the GitHub repo [2] instead.
[1] https://lists.ozlabs.org/pipermail/ccan/2022-September/00141...
[2] https://github.com/rustyrussell/ccan/
-
[ROAST MY CODE] Implementing generic vector in C
This is a great learning exercise but not very useful because using void* creates practical problems that the compiler cant help you with. IMHO, for a nice vector in C look at https://github.com/rustyrussell/ccan/blob/master/ccan/darray/darray.h
- Common libraries and data structures for C
-
Toward a better list iterator for the Linux kernel
For more advanced intrusive lists in C, I've found that ccan's tlist2 (https://github.com/rustyrussell/ccan/blob/master/ccan/tlist2...) provides a decent model here.
Compared to the linux kernel's intrusive lists, it also tracks the offset of the list_node within the structure contained by the list, which eliminates another class of problems. It does still have the "using the iterator after the for loop is over" issue discussed in this article, but it also already tracks the types as Linus proposed doing in the article to resolve the issue.
-
Good C Source Code
ccan library https://github.com/rustyrussell/ccan I think it is used also in the linux kernel(?)
-
What are your favorite C resources? They can be either for learning or reference.
ccan (analagous to cpan, but for C rather than Perl.)
-
Dynamic link list
You could use a discriminated union in your list node. You could use a void pointer in your list node, allocate space as needed and memcpy the date into this space, or don't allocate and store pointers to the original data. You could use an intrusive list, like this.
-
The Byte Order Fiasco
The fallacy in the article is that anyone should code these functions. There's plenty of public domain libraries that do this correctly.
https://github.com/rustyrussell/ccan/blob/master/ccan/endian...
What are some alternatives?
uefiseven - An EFI loader that emulates int10h interrupts needed for booting Windows 7 under UEFI Class 3 systems.
SQLite - Official Git mirror of the SQLite source tree
Rufus - The Reliable USB Formatting Utility
STC - A modern, user friendly, generic, type-safe and fast C99 container library: String, Vector, Sorted and Unordered Map and Set, Deque, Forward List, Smart Pointers, Bitset and Random numbers.
toaruos - A completely-from-scratch hobby operating system: bootloader, kernel, drivers, C library, and userspace including a composited graphical UI, dynamic linker, syntax-highlighting text editor, network stack, etc.
stb - stb single-file public domain libraries for C/C++
uefi-elf-bootloader - UEFI ELF Bootloader example
stage0 - A set of minimal dependency bootstrap binaries
android_bootable_bootloader_edk2 - Android Boot Loader (abl) for SHIFTPHONES
chibicc - A small C compiler
edk2 - EDK II
GNU Emacs - Mirror of GNU Emacs