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
#define _GNU_SOURCE | |
#include <stdio.h> | |
#include <fenv.h> | |
int main() | |
{ | |
feenableexcept(FE_DIVBYZERO); | |
double x = 12.34; |
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
#include <fstream> | |
#include <iterator> | |
#include <vector> | |
int main(int argc, char** argv) | |
{ | |
std::ifstream ifs(argv[1], std::ios::binary); | |
std::istreambuf_iterator<char> begin(ifs), end; | |
std::vector<uint8_t> data(begin, end); |
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 | |
qemu-system-arm \ | |
-M virt \ | |
-m 3G \ | |
-device virtio-gpu-pci \ | |
-drive if=none,file=os.qcow2,id=hd0 \ | |
-device virtio-blk-device,drive=hd0 \ | |
-device virtio-net-device \ | |
-kernel vmlinuz-5.17.5-300.fc36.armv7hl \ |
OlderNewer