Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Unofficial Guide To Expanding Your Numworks/Using the simulator

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Windows (Author wanted) OS X (Author wanted) Linux To use the simulator, you'll need a system with X Windows support for the GUI, so before starting have a working Linux system setup with X Windows. You also should have already successfully built the firmware for the calculator itself and this guide assumes you have installed the tools to do so. Building the simulator Your have first to install clang On Gentoo and Gentoo based (funtoo, calculate, ...): emerge -v clang On Debian and Debian based (Ubuntu, ...) apt-get install clang On Arch Linux sudo pacman -S clang Others ... Change to the epsilon directory cd epsilon make PLATFORM=simulator clean make PLATFORM=simulator Using the simulator Once you have finished your build, you will have an executable app.elf. Just run this with ./app.elf You should see an ugly (but functional) version of the Numworks calculator appear on your screen (most likely in French). You can quit by closing the window. So now that it's running, what to do with it? The great thing about the simulator is that you can debug your applications in it without special hardware. To do this you'll need to rebuild with the debug data: make PLATFORM=simulator clean make PLATFORM=simulator DEBUG=1 You can now debug with GDB, or any IDE that supports GDB. gdb ./app.elf will start a command line session of GDB. For a more intuitive interface, you can try out GDBGUI. This is a python app that gives you a browser based GUI for GDB.