Changes between Version 6 and Version 7 of PortingYourApp
- Timestamp:
- Mar 24, 2010, 3:18:30 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PortingYourApp
v6 v7 17 17 $ mkdir mutekh_port 18 18 $ cd mutekh_port 19 $ mkdir src lib h19 $ mkdir bc lib h sys 20 20 $ cp ../bc-1.06/bc/*.[ch] bc/ 21 21 $ cp ../bc-1.06/lib/*.[ch] lib/ … … 65 65 int main(int, char**); 66 66 67 /** 68 Wrap between app_start() and main() entry-points. 69 Provide command-line arguments, and initialize the 70 terminal in order to enable local echo. 71 */ 67 72 void app_start() 68 73 { … … 144 149 = Compiling and running = 145 150 146 As seen in [wiki:Arch/Soclib/Tutorial tutorial], we may compile our application 151 == As an unix process == 152 153 As seen in [wiki:QuickStartUnix quick start], we may compile the kernel as an unix process: 154 155 {{{ 156 user@host … mutekh $ make CONF=~/scratch/foo/mutekh_port/config BUILD=emu-darwin-x86 157 … 158 BUILD DIR /Users/nipo/projects/mutekh/trunk/mutekh/obj-kernel-emu 159 KERNEL kernel-emu.out 160 }}} 161 162 And directly run it ! 163 164 {{{ 165 user@host … mutekh $ ./kernel-emu.out 166 MutekH is alive. 167 CPU 0 is up and running. 168 bc for MutekH 1.06 169 GNU 170 This is free software with ABSOLUTELY NO WARRANTY. 171 For details type `warranty'. 172 123 173 123 174 123*123 175 15129 176 }}} 177 178 == On SoCLib == 179 180 As seen in [wiki:Arch/Soclib/Tutorial soclib tutorial], we may compile the application 147 181 148 182 {{{ … … 156 190 157 191 {{{ 158 user@host … mutekh $ ./simulation.x .../mutekh/kernel-soclib-mips32el.out192 user@host … caba-vgmn-mutekh_kernel_tutorial $ ./simulation.x mips32el:1 /path/to/mutekh/kernel-soclib-mips32el.out 159 193 }}}