|
发表于 2010-11-13 11:56:21
|
显示全部楼层
How do I set up a development environment?
==========================================
Here is the preferred way for Windows:
- Add the bin/ folder of Ndless to your PATH environment variable
- Install MSYS, the lightweight Unix-like shell environment: http://www.mingw.org/wiki/msys
The automated installation has been discontinued since MSYS 1.0.11, so you may prefer to
use this old version foro an easier installation.
Then you may optionally download the indivual component upgrades from
http://sourceforge.net/projects/mingw/files/ (MSYS sub-folder) and unpack them in MSYS's
installation directory using 7-zip (http://www.7-zip.org/download.html).
MinGW is not required by Ndless.
- Install the YAGARTO GNU ARM toolchain - http://www.yagarto.de . Request YAGARTO's
installer to add the bin/ directory to your PATH environment variable.
- You can now open "MSYS (rxvt)" from the Windows Start menu, and run "make" from the root
of a Makefile-based project.
To setup the developement environment on Linux:
- Install the GNU ARM toolchain (this procedure may help:
http://blog.nutaksas.com/2009/05 ... m-toolchain-on.html )
- Add the bin/ folder of Ndless to your PATH environment variable
(http://www.troubleshooters.com/linux/prepostpath.htm)
Ndless provides a light wrapper to some YAGARTO tools and TI-NSpire-specific C and assembly
header files.
What you need to know as a developer
====================================
- An example of build script can be found in src/arm/demo/Makefile
- TI-Nspire-specific header files from Ndless's directory include/ are directly available
- Executables must be position independent: don't use absolute addresses and static
variables
- Executable files must start with the 4-bytes-long header 'PRG\0', with their entry
point right after it. The utility 'MakeTNS' available in the tools directory may be
used to skip newlib's startup code added before this signature.
- Pure-assembly programs must define the global symbol "main" after the header:
.string "PRG"
main: .global main
<...main code...>
- Make sure that the assembly files extensions are in uppercase (.S) to make them
be preprocessed by the C preprocessor on which Ndless include files are built
- OS functions can be called from the program, see the source code of 'demo'.
- Development information and resources are or will be available on Hackspire:
http://hackspire.unsads.com
Upgrading your developments and scripts
=======================================
The executable format, the conventions and the header files are currently being defined
and prone to change. This section describes the upgrade steps between the different
releases of Ndless.
出自ndless 1.1.1的readme
小饕看看。 |
|