$ ldd <binary>
$ otool -L
$ make | |
------------------------------------------------------------ | |
making verilator in src | |
make -C src | |
make[1]: Entering directory '/home/ubuntu/go/src/github.com/verilator/verilator/src' | |
mkdir -p obj_dbg | |
make -C obj_dbg -j 1 TGT=../../bin/verilator_bin_dbg VL_DEBUG=1 -f ../Makefile_obj serial | |
make[2]: Entering directory '/home/ubuntu/go/src/github.com/verilator/verilator/src/obj_dbg' |
module half_adder( | |
input clk, | |
a, | |
b, | |
output reg [0:0] sum, | |
carry | |
); | |
always @(posedge clk) | |
begin | |
sum <= a ^ b; |
module half_adder( | |
input clk, | |
a, | |
b, | |
output reg sum, | |
carry | |
); | |
always @(posedge clk) | |
begin | |
sum <= a ^ b; |
$ conan install -s compiler.cppstd=17 -s compiler=clang -s compiler.version=7.0 --build missing . | |
Configuration: | |
[settings] | |
arch=armv7 | |
arch_build=armv7 | |
build_type=Release | |
compiler=clang | |
compiler.cppstd=17 |
visualstudio2019community
.PS C:\> choco install --force visualstudio2019-workload-nativedesktop --package-parameters "--includeOptional"
brew install llvm --HEAD
.# Prefer newer LLVM with fuzzing enabled
# shellcheck source=/dev/null
export CC='clang'
export CXX='clang++'
export LDFLAGS="-L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib"
PATH="$(brew --prefix)/opt/llvm/bin:$PATH"
$ cat src/zag/main.zig | |
const std = @import("std"); | |
pub fn main() !void { | |
const stdout = std.io.getStdOut().writer(); | |
// | |
// The OK triples from: | |
// https://github.com/ziglang/zig-bootstrap#supported-triples | |
// |
If DiskUtility is giving you lip, select View -> Show All Devices
and erase the outer device.
#!/usr/bin/env ruby | |
file = File.new('/tmp/default.pcm.dat', 'rb') | |
while bytes = file.read(4) do | |
puts bytes.unpack('l>')[0] | |
end |