Login Status


ShareSource Site » Projects » mcc » mccWiki

Project: Marionette C compiler [Wiki]

(*) Summary   [^] Files   [^] Screenshots   [_] Wiki   [!] Bug Tracker  
(») Mercurial Repository  
Project Wiki (Page: Home)
Last Changed 3 weeks ago, by xlq

Getting started

Note that there isn't very much compiler yet.

Building

For building, you'll need SCons. Debian/Ubuntu users can run aptitude install scons while Slackware users can use the SCons slackbuild. Users of other operating systems will have to find out for themselves.


[1] Fetch the tip, either using Mercurial:

hg clone https://sharesource.org/hg/mcc

Or not using Mercurial:

wget --no-check-certificate https://sharesource.org/hg/mcc/archive/tip.tar.bz2
tar -xvvjf tip.tar.bz2

[2] Enter the project directory.

[3] Run scons --help to show a list of build options. The PREFIX and DESTDIR options do nothing yet. For example, to set the CFLAGS to enable gprof profiling, core dumping and debugging information: scons CFLAGS="-Wall -g -std=c99 -pedantic -dH -pg" SCons will remember these options, and you can just run scons without these options later.

[4] In the current state, the compiler will only read from stdin and print the syntax tree to stdout.

SCons options

  • You can run scons -jN to run up to N compiler processes at once.
  • You can suppress some verbal garbage by enabling quiet mode with scons -Q
  • You can run SCons from any subdirectory with scons -D
  • SCons will not remember these options.
  • You can put these options in an environment variable, so you don't have to keep typing them: export SCONSFLAGS="-QDj2"
  • Run scons -c to clean all generated files. SCons uses checksums instead of comparing datestamps, so you'll never have to do this for fear of broken dependency checking. However you may wish to clean if you don't want the object files (to save a little disk space or to look through the source files more easily).
  • Putting the -c options in SCONSFLAGS is very foolish indeed.
  • Read the SCons manpage or user guide for more SCons options and information about the excellent SCons build system.

Contact

Please join #marionette on the ShareSource IRC network:

  • #marionette on irc.tty2.org:6697 with SSL
  • or irc.sharesource.org:6667 without SSL

Or e-mail jp <dot> sittingduck <at> gmail <dot> com (public key)