From 2e5f99a9969123cf8e22f440a6342a55e0719247 Mon Sep 17 00:00:00 2001 From: Slyvtt Date: Thu, 23 Mar 2023 21:07:15 +0100 Subject: [PATCH] update of README.md --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index f5dda44..16e17e6 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,22 @@ The available options are: % fxsdk build-cg install ``` +**"Cross-Building" a fx-9860G II project for fx-CG 50** + +fx-9860G II sources can be automatically converted to run on fx-CG 50, provided no +low level function/specific hardware manipulation/or syscall is used by the program. + +The command is very similar to fx-9860G II one, except it is `fxsdk build-fx-as-cg` +instead of `fxsdk build-fx`. + +The available options are: + +``` +% fxsdk build-fx-as-cg +% fxsdk build-fx-as-cg install +``` + + ## Using in CMake-based add-ins Find the `Gint` module and link against `Gint::Gint`. gint declares the include @@ -125,6 +141,10 @@ using the fxSDK, you will need to: * Link with `-T fx9860g.ld -lgint-fx -lopenlibm -lc` on fx-9860G; * Link with `-T fxcg50.ld -lgint-cg -lopenlibm -lc` on fx-CG 50. +Manually building a fx-9860G project to run on a fx-CG50 can be done : +* Build with `-m4-nofpu -mb -DFXCG50 -DFX9860G_AS_CG`; +* Link with `-T fxcg50.ld -lgint-fxascg -lopenlibm -lc`. + If you don't have a standard library such as [Memallox's port of newlib](/PlaneteCasio/libc), you also need `-nostdlib`. I typically use `-m3 -mb` or `-m4-nofpu -mb` to specify the platform, but that