According to the specifications of the C and the C++ programming languages, implementations of C and C++ can be classified into hosted ones and freestanding ones, depending on whether the implementation has access to functionalities that require operating system (OS) support, such as memory allocation and multi-threading. A hosted implementation has full access to these functionalities, and can provide the full range of features required by the language. A freestanding implementation, on the other hand, does not have access to any functionality that requires support from the execution environment. Such implementations are only required to provide a subset of the language features. Freestanding implementations are important when developing operating systems, the standard C library,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| # SPDX-FileCopyrightText: 2025 Alexis Engelke | |
| # SPDX-License-Identifier: Apache-2.0 | |
| from bisect import bisect_right | |
| from dataclasses import dataclass, replace, field | |
| from typing import NamedTuple | |
| import sys | |
| from elftools.elf.elffile import ELFFile | |
| from elftools.dwarf.callframe import FDE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import HDL | |
| import MM4 | |
| import MolecularRenderer | |
| import OpenMM | |
| import QuaternionModule | |
| import Foundation | |
| import func QuartzCore.CACurrentMediaTime // profiling on macOS | |
| // MARK: - Compile Structure |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Bash script to complile LLVM | |
| # @hoyhoy | |
| # 11/18/2025 | |
| # Installs to /opt/llvm-${LLVM_VERSION} i.e. /opt/llvm-21.1.6 | |
| # and then symbolically link /opt/llvm-latest to /opt/llvm-21.1.6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # MacBook Lid Angle Sensor Diagnostic Script | |
| # This script helps identify the lid angle sensor on different MacBook models | |
| echo "==============================================" | |
| echo "MacBook Lid Angle Sensor Diagnostic Tool" | |
| echo "==============================================" | |
| echo "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # This program downloads and builds several compression utilities, benchmarks their compression and decompression | |
| # performance on a specific input file including memory consumption, and finally generates HTML charts. | |
| require 'benchmark' | |
| require 'digest' | |
| require 'etc' | |
| require 'fileutils' | |
| require 'json' | |
| require 'net/http' | |
| require 'optparse' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // RUN: %llvmbuildpath/bin/clang --sysroot=%libcpath --target="riscv32-none-elf" -menable-experimental-extensions -mabi="ilp32" -march="rv32imxsimple0p1" -O3 -S -o - %s | FileCheck %s | |
| // CHECK: main: | |
| // CHECK-DAG: SIMPLE.mac [[RD1:[as][0-9]+]], [[RS1:[as][0-9]+]], [[RS2:[as][0-9]+]] | |
| // CHECK: call printf | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> |
Original source code, compiled with ARC:
-(NSString*)name {
return self->name;
}
-(void)caller {
self->thingName = [self->thing name];
}namerefs (introduced in bash 4.0) act as aliases for other variables
var=meow
declare -n ref=var
echo $ref # prints meow
ref=moo
echo $var # prints moo"%" means not tested by me personally.
- syscall.sh: Linux ARMv7/AArch64/x86/x86_64 ABI and syscall tables
- %C8051F34x_Glitch: silicon glitching tutorial
- Binary Ninja: interactive native code disassembler, decompiler, and debugger
- BinExport: companion tool for BinDiff
- when building, replace the BN SDK it downloads with a path to BN API library
NewerOlder