Skip to content

Porting instructions

burcin edited this page Jul 18, 2011 · 8 revisions

To create a test environment:

  1. get the sources with git clone -b spielwiese git://git.berlios.de/singular <directory_name>
  2. cd <directory_name_from_above>
  3. run ./for_Hans_with_love.sh from the root directory
  4. run ./configure
  5. build libpolys: make
  6. test libpolys: make check
  7. cd kernel

Run make <file_name>.o from the kernel directory to test that file.

What changed?

  1. lots of stuff moved in the headers, which messes up the includes. This should be fixed already. If there is still a problem look in test.cc for the correct includes.
  2. coefficients were separated from polynomial rings.
  • There is a new type coeffs.
  • Operations on coeffs are done by n_* functions, where coeffs is the last argument (consider it as the context storing information on the coefficient domain).
  • Functions like nAdd(a, b) become n_Add(a, b, r).
  1. new arithmetic functions.
  • Same as the previous.
  • Arithmetic is done with p_* functions, which take a ring as the last argument.
  • The use of the global variable currRing is discouraged.

Clone this wiki locally