URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [language/] [c/] [libc/] [stdlib/] [v2_0/] [cdl/] [stdlib.cdl] - Rev 315
Go to most recent revision | Compare with Previous | Blame | View Log
# ====================================================================## stdlib.cdl## C library stdlib related configuration data## ====================================================================#####ECOSGPLCOPYRIGHTBEGIN###### -------------------------------------------## This file is part of eCos, the Embedded Configurable Operating System.## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.#### eCos is free software; you can redistribute it and/or modify it under## the terms of the GNU General Public License as published by the Free## Software Foundation; either version 2 or (at your option) any later version.#### eCos is distributed in the hope that it will be useful, but WITHOUT ANY## WARRANTY; without even the implied warranty of MERCHANTABILITY or## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License## for more details.#### You should have received a copy of the GNU General Public License along## with eCos; if not, write to the Free Software Foundation, Inc.,## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.#### As a special exception, if other files instantiate templates or use macros## or inline functions from this file, or you compile this file and link it## with other works to produce a work based on this file, this file does not## by itself cause the resulting work to be covered by the GNU General Public## License. However the source code for this file must still be made available## in accordance with section (3) of the GNU General Public License.#### This exception does not invalidate any other reasons why a work based on## this file might be covered by the GNU General Public License.#### Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.## at http://sources.redhat.com/ecos/ecos-license/## -------------------------------------------#####ECOSGPLCOPYRIGHTEND##### ====================================================================######DESCRIPTIONBEGIN###### Author(s): jlarmour# Contributors:# Date: 2000-04-14######DESCRIPTIONEND###### ====================================================================cdl_package CYGPKG_LIBC_STDLIB {display "ISO C library general utility functions"description "This package provides general utility functions in <stdlib.h>as specified by the ISO C standard - ISO/IEC 9899:1990."doc ref/libc.htmlinclude_dir cyg/libc/stdlibparent CYGPKG_LIBCrequires CYGPKG_ISOINFRAimplements CYGINT_ISO_STDLIB_STRCONVimplements CYGINT_ISO_STDLIB_ENVIRONimplements CYGINT_ISO_STDLIB_SYSTEMimplements CYGINT_ISO_BSEARCHimplements CYGINT_ISO_QSORTimplements CYGINT_ISO_ABSimplements CYGINT_ISO_DIVrequires CYGINT_ISO_CTYPErequires CYGINT_ISO_STRING_STRFUNCScompile abs.cxx atox.cxx bsearch.cxx \div.cxx getenv.cxx qsort.cxx \rand.cxx strtod.cxx strtol.cxx \strtoul.cxx system.cxx# ====================================================================cdl_component CYGIMP_LIBC_STDLIB_INLINES {display "Inline versions of <stdlib.h> functions"flavor noneno_definedescription "This option chooses whether some of theparticularly simple standard utility functionsfrom <stdlib.h> are available as inlinefunctions. This may improve performance, and asthe functions are small, may even improve codesize."cdl_option CYGIMP_LIBC_STDLIB_INLINE_ABS {display "abs() / labs()"default_value 1no_definerequires { CYGBLD_ISO_STDLIB_ABS_HEADER == \"<cyg/libc/stdlib/abs.inl>" }}cdl_option CYGIMP_LIBC_STDLIB_INLINE_DIV {display "div() / ldiv()"default_value 1no_definerequires { CYGBLD_ISO_STDLIB_DIV_HEADER == \"<cyg/libc/stdlib/div.inl>" }}cdl_option CYGIMP_LIBC_STDLIB_INLINE_ATOX {display "atof() / atoi() / atol()"default_value 1no_definerequires { CYGBLD_ISO_STDLIB_STRCONV_HEADER == \"<cyg/libc/stdlib/atox.inl>" }}}cdl_component CYGPKG_LIBC_RAND {display "Random number generation"flavor nonedescription "These options control the behaviour of thefunctions rand(), srand() and rand_r()"cdl_option CYGSEM_LIBC_PER_THREAD_RAND {display "Per-thread random seed"doc ref/libc-thread-safety.htmlrequires CYGVAR_KERNEL_THREADS_DATAdefault_value 0description "This option controls whether the pseudo-randomnumber generation functions rand() and srand()have their state recorded on a per-threadbasis rather than global. If this option isdisabled, some per-thread space can be saved.Note there is also a POSIX-standard rand_r()function to achieve a similar effect with usersupport. Enabling this option will use one slotof kernel per-thread data. You should ensure youhave enough slots configured for all yourper-thread data."}cdl_option CYGNUM_LIBC_RAND_SEED {display "Random number seed"flavor datalegal_values 0 to 0x7fffffffdefault_value 1description "This selects the initial random number seed forrand()'s pseudo-random number generator. Forstrict ISO standard compliance, this should be 1,as per section 7.10.2.2 of the standard."}cdl_option CYGNUM_LIBC_RAND_TRACE_LEVEL {display "Tracing level"flavor datalegal_values 0 to 1default_value 0description "Trace verbosity level for debugging the rand(),srand() and rand_r() functions. Increase thisvalue to get additional trace output."}cdl_option CYGIMP_LIBC_RAND_SIMPLEST {display "Simplest implementation"flavor booldefault_value 0implements CYGINT_ISO_RANDdescription "This provides a very simple implementation of rand()that does not perform well with randomness in thelower significant bits. However it is exceptionallyfast. It uses the sample algorithm from the ISO Cstandard itself."}cdl_option CYGIMP_LIBC_RAND_SIMPLE1 {display "Simple implementation #1"flavor booldefault_value 1implements CYGINT_ISO_RANDdescription "This provides a very simple implementation of rand()based on the simplest implementation above. Howeverit does try to work around the lack of randomnessin the lower significant bits, at the expense of alittle speed."}cdl_option CYGIMP_LIBC_RAND_KNUTH1 {display "Knuth implementation #1"flavor booldefault_value 0implements CYGINT_ISO_RANDdescription "This implements a slightly more complex algorithmpublished in Donald E. Knuth's Art of ComputerProgramming Vol.2 section 3.6 (p.185 in the 3rd ed.).This produces better random numbers than thesimplest approach but is slower."}}cdl_option CYGFUN_LIBC_strtod {display "Provides strtod()"requires CYGPKG_LIBMdefault_value { 0 != CYGPKG_LIBM }implements CYGINT_ISO_STDLIB_STRCONV_FLOATdescription "This option allows use of the utility functionstrtod() (and consequently atof()) to convertfrom string to double precision floating pointnumbers. Disabling this option removes thedependency on the math library package."}cdl_option CYGNUM_LIBC_BSEARCH_TRACE_LEVEL {display "bsearch() tracing level"flavor datalegal_values 0 to 1default_value 0description "Trace verbosity level for debugging the <stdlib.h>binary search function bsearch(). Increase thisvalue to get additional trace output."}cdl_option CYGNUM_LIBC_QSORT_TRACE_LEVEL {display "qsort() tracing level"flavor datalegal_values 0 to 1default_value 0description "Trace verbosity level for debugging the <stdlib.h>quicksort function qsort(). Increase this valueto get additional trace output."}# ====================================================================cdl_component CYGPKG_LIBC_STDLIB_OPTIONS {display "C library stdlib build options"flavor noneno_definedescription "Package specific build options including control overcompiler flags used only in building this package,and details of which tests are built."cdl_option CYGPKG_LIBC_STDLIB_CFLAGS_ADD {display "Additional compiler flags"flavor datano_definedefault_value { "" }description "This option modifies the set of compiler flags forbuilding this package. These flags are used in additionto the set of global flags."}cdl_option CYGPKG_LIBC_STDLIB_CFLAGS_REMOVE {display "Suppressed compiler flags"flavor datano_definedefault_value { "" }description "This option modifies the set of compiler flags forbuilding this package. These flags are removed fromthe set of global flags if present."}cdl_option CYGPKG_LIBC_STDLIB_TESTS {display "C library stdlib tests"flavor datano_definecalculated { "tests/abs tests/atoi tests/atol tests/bsearch tests/div tests/getenv tests/labs tests/ldiv tests/qsort tests/rand1 tests/rand2 tests/rand3 tests/rand4 tests/srand tests/strtol tests/strtoul" }description "This option specifies the set of tests for this package."}}}# ====================================================================# EOF stdlib.cdl
Go to most recent revision | Compare with Previous | Blame | View Log
