Add instructions for building cross-compiler.
[pintos-anon] / src / TODO
1 * malloc() needs to block until memory is available?
2
3 * Should we use a task gate for hardware interrupts?  Then we could
4   dedicate a stack to interrupt handling and not worry about interrupt
5   usage of kernel stacks.
6
7 * Filesystem dumps should include filehdrs?
8
9 * Cross-compile notes:
10
11 cd /tmp
12 bzcat ~/binutils-2.15.tar.bz2 | tar x
13 tar xzf newlib-1.12.0.tar.gz
14 tar xzf gcc-core-3.3.2.tar.gz
15
16 cd /tmp/binutils-2.15
17 mkdir i386
18 cd i386
19 ../configure --target=i386-elf --prefix=/usr/class/cs140/i386
20 make LDFLAGS=-lintl
21 make install
22
23 cd /tmp/gcc-core-3.3.2.tar.gz
24 mkdir i386
25 cd i386
26 PATH=$PATH:/usr/class/cs140/i386/bin ../configure --target=i386-elf --prefix=/usr/class/cs140/i386 --with-gnu-as --with-as=/usr/class/cs140/i386/bin/i386-elf-as --with-gnu-ld --with-ld=/usr/class/cs140/i386/bin/i386-elf-ld --with-headers=/tmp/newlib-1.12.0/newlib/libc/include --with-newlib
27 PATH=$PATH:/usr/class/cs140/i386/bin make
28 make install