Skip to content

Instantly share code, notes, and snippets.

.file "crt1.c"
.text
.globl _start
.type _start, @function
_start:
.LFB0:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
#include <stdio.h>
#include <errno.h>
#include <limits.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
int main(void)
#include <stdio.h>
#include <errno.h>
#include <limits.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
int main(void)
#include <stdio.h>
#include <errno.h>
#include <limits.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
int main(void)
#include "../internal/internal.h"
#include <stdarg.h>
#include <string.h>
static int __convtab[20] = { '0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };
size_t __uint2str_inter(char *s, size_t n, int base, size_t i)
{
if (n / base) {
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQENBFrhLuwBCAC8d7kLYjHDWlMdxEmv2X6+kvVrrWI1/c0P2HJ0P1oQ2XD8TsOu
mFZIFQAq+FkCfdXXkzYFsYrrK/rMvsr2yAeH1OX17G+8hJBnGQ035324PUFKnRy3
Vg/hECndMp06EL/2wFueNwLE+D+W/JST0i32uW9DWcsxJMEMiu73NuxYzSyDEpf7
dlF9tUyG8IO/oUO7fh9iprnxEDbZvhjYM9HOVPq2p7LUGWKs06jOyNlrqjobzX/L
BgLwbLpRtqK3SJtlPDVoMCeuf5STwUuUs8ofAIxN1XP7SKMFinRGa5t8ixIrIJJm
QJIxeF3Z6Hqy4sEZe1BEBN/UlDQtVZtj1P2VABEBAAG0MEFkcmlhbiBQYXJ2aW4g
RC4gT3Vhbm8gPGFkcmlhbnBhcnZpbm9AZ21haWwuY29tPokBVAQTAQgAPhYhBAtD
d5wxiwpAnYUXYB1T/WoRyL1nBQJa4S7sAhsDBQkDwmcABQsJCAcCBhUKCQgLAgQW
wget "https://git.zv.io/r/hlibc/-/archive/$1/hlibc-$1.tar"
untar "hlibc-$1.tar"
cd "hlibc-$1"
make gcctest
__ __ __ _______ ____ ______
/ / / /| / /| /__ __/| / __ \ / ____/|
/ /_/ / / / / / |_/ / _|/ / /_/ /| / / __|/
/ __ / / / / / / / / / __ / | / / /
/ / / / / / /____ __/ /__ / /_/ | / / /____
/_/ /_/ / /______/| /______/| /_____/ | /______/|
|_|/|_|/ |______|/ |______|/ |______|/ |_____|/
__ __ __ _______ ____ _______
/ / / /| / /| /__ __/| / __ \ / _____/|
/ /_/ / / / / / |_/ / _|/ / /_/ /| / / ___|/
/ __ / / / / / / / / / __ / | / / /
/ / / / / / /____ __/ /__ / /_/ | / / /____
/_/ /_/ / /______/| /______/| /_____/ | /______/|
|_|/|_|/ |______|/ |______|/ |______|/ |_____|/
#define safe_wrap(f) senv = f(senv, x, y, z); if (senv == ERANGE); goto _safe_end;
#define safe_init() safeenv res; _safe_init(&senv)
#define safe_add(x, y, z) safe_wrap(_safeadd)
#define safe_end() _safe_end:
int foo ()
{
int a, b, c, d;