[jhc] darcs patch: Explain RTS cflags for tiny cpu.

John Meacham john at repetae.net
Sat Mar 16 23:41:56 CET 2013


Thanks for sending it as a darcs patch! that makes it merge
automatically with my changes. (plus I have scripts that intercept
patches from my email and automatically apply them against a test
repository for me)

    John

On Sat, Mar 16, 2013 at 10:21 AM,  <kiwamu at debian.or.jp> wrote:
> 1 patch for repository http://repetae.net/repos/jhc:
>
> Sun Mar 17 02:21:07 JST 2013  kiwamu at debian.or.jp
>   * Explain RTS cflags for tiny cpu.
>
>
> [Explain RTS cflags for tiny cpu.
> kiwamu at debian.or.jp**20130316172107
>  Ignore-this: b09e6da5e1704b9da4a51ae6a23f57ee
> ] hunk ./src/Options.hs 138
>  _bits\_max_               the number of bits in the largest integral type. should be the number of bits in the 'intmax_t' C type.
>  _arch_                    what to pass to gcc as the architecture
>
> +# Special defines to set cflags
> +
> +Define                             Meaning
> +------                             ---------------------------------------------------------------------------
> +\_JHC\_ARM\_STAY\_IN\_THUMB\_MODE  set bit0 to any function pointers, for Cortex-M*. ([more detail](http://communities.mentor.com/community/cs/archives/arm-gnu/msg01904.html))
> +\_JHC\_JGC\_NAIVEGC                run gc when have no more blocks.
> +\_JHC\_JGC\_STACKGROW              number of stack entry growed when run short of it.
> +\_JHC\_JGC\_FIXED\_MEGABLOCK       use a single megablock without allocation megablock.
> +\_JHC\_JGC\_BLOCK\_SHIFT           bit shift to specify block size. Use it internally like this: (1 << (_JHC_JGC_BLOCK_SHIFT)).
> +\_JHC\_JGC\_MEGABLOCK\_SHIFT       bit shift to specify megablock size. Use it internally like this: (1 << (_JHC_JGC_MEGABLOCK_SHIFT)).
> +
>  -}
>
>  data Mode = BuildHl FilePath         -- ^ Build the specified hl-file given a description file.
>
>



More information about the jhc mailing list