Changes between Version 6 and Version 7 of PortingYourApp


Ignore:
Timestamp:
Mar 24, 2010, 3:18:30 PM (14 years ago)
Author:
Nicolas Pouillon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PortingYourApp

    v6 v7  
    1717$ mkdir mutekh_port
    1818$ cd mutekh_port
    19 $ mkdir src lib h
     19$ mkdir bc lib h sys
    2020$ cp ../bc-1.06/bc/*.[ch] bc/
    2121$ cp ../bc-1.06/lib/*.[ch] lib/
     
    6565int main(int, char**);
    6666
     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 */
    6772void app_start()
    6873{
     
    144149= Compiling and running =
    145150
    146 As seen in [wiki:Arch/Soclib/Tutorial tutorial], we may compile our application
     151== As an unix process ==
     152
     153As seen in [wiki:QuickStartUnix quick start], we may compile the kernel as an unix process:
     154
     155{{{
     156user@host … mutekh $ make CONF=~/scratch/foo/mutekh_port/config BUILD=emu-darwin-x86
     157
     158BUILD DIR    /Users/nipo/projects/mutekh/trunk/mutekh/obj-kernel-emu
     159KERNEL       kernel-emu.out
     160}}}
     161
     162And directly run it !
     163
     164{{{
     165user@host … mutekh $ ./kernel-emu.out
     166MutekH is alive.
     167CPU 0 is up and running.
     168bc for MutekH 1.06
     169GNU
     170This is free software with ABSOLUTELY NO WARRANTY.
     171For details type `warranty'.
     172123
     173123
     174123*123
     17515129
     176}}}
     177
     178== On SoCLib ==
     179
     180As seen in [wiki:Arch/Soclib/Tutorial soclib tutorial], we may compile the application
    147181
    148182{{{
     
    156190
    157191{{{
    158 user@host … mutekh $ ./simulation.x .../mutekh/kernel-soclib-mips32el.out
     192user@host … caba-vgmn-mutekh_kernel_tutorial $ ./simulation.x mips32el:1 /path/to/mutekh/kernel-soclib-mips32el.out
    159193}}}