Skip to content

Instantly share code, notes, and snippets.

@swap2ag
swap2ag / launch.json
Created March 22, 2023 14:10 — forked from borrrden/launch.json
VSCode Setup for Debugging PonchoOS
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Kernel",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceRoot}/kernel/bin/kernel.elf",
"args": [],
"stopAtEntry": false,
@swap2ag
swap2ag / instructions.sh
Created March 22, 2023 14:10 — forked from borrrden/instructions.sh
Debugging ponchoOS kernel
# INSIDE WSL, install gdb (one-time instruction)
sudo apt install gdb
# Add the following to your kernel Makefile CFLAGS, so that gcc will generate
# debug symbols that the debugger can use
# Note: The thing being added is -g, so as of lesson 12 it should look like this.
# Delete all the contents of the lib folder to force a recompile
CFLAGS = -ffreestanding -fshort-wchar -g
# Add the following to your qemu invocation and start QEmu:
@swap2ag
swap2ag / install_cross_compiler.sh
Created June 11, 2022 20:15
Compile the cross-compiler for i386-elf
#!/bin/bash
echo "Go to https://wiki.osdev.org/Cross-Compiler_Successful_Builds to view the successful versions of gcc and binutils that worked"
sudo apt update
sudo apt install build-essential
sudo apt install libgmp3-dev libmpfr-dev libmpc-dev gcc
export PREFIX="/home/$USER/i386elfgcc"
export TARGET=i386-elf
export PATH="$PREFIX/bin:$PATH"
model = tf.keras.models.Sequential([tf.keras.layers.Dense(units=26, input_shape=(X_train.shape[1],), activation=tf.keras.activations.relu),
tf.keras.layers.Dense(units=26, activation=tf.keras.activations.sigmoid)
])