aboutsummaryrefslogtreecommitdiff
path: root/code16gcc.h
blob: a4feb6283267d1d17506ba81d3604bfc53e920a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * code16gcc.h
 *
 * This file is -include'd when compiling 16-bit C code.
 * Note: this asm() needs to be emitted before gcc emits any code.
 * Depending on gcc version, this requires -fno-unit-at-a-time or
 * -fno-toplevel-reorder.
 *
 * Hopefully gcc will eventually have a real -m16 option so we can
 * drop this hack long term.
 */


asm(".code16gcc");