Mercurial > pub > dyncall > dyncall
view portasm/gen-masm.sh @ 551:eef302b7a58d
- amendment fix for buffer overflow (see commit 0455834d29a1), to also handle non-standard struct packing, + better asserts
- changelog wording tweaks for clarity
- comment tweaks for clarity
- (mostly pointless) microoptimization in aggr alignment calculation, avoiding a modulo, as alignment always a power of 2
- cleanups
author | Tassilo Philipp |
---|---|
date | Mon, 20 Jun 2022 14:57:49 +0200 |
parents | ab2d78e48ca2 |
children |
line wrap: on
line source
#!/bin/sh `which gcc || which clang` -E -P -DGEN_MASM ${1:?Usage: $0 <name> [<outsuffix>]}.S \ | sed "/^$/d;1i\\ ; auto-generated by `basename $0` ;s/$/ /" \ > $1$2.asm