picoc
-----
PicoC is a very small C interpreter for scripting. It was originally written
as a script language for a UAV's on-board flight system. It's also very
suitable for other robotic, embedded and non-embedded applications.
The core C source code is around 3500 lines of code. It's not intended to be
a complete implementation of ISO C but it has all the essentials. When
compiled it only takes a few k of code space and is also very sparing of
data space. This means it can work well in small embedded devices. It's also
a fun example of how to create a very small language implementation while
still keeping the code readable.
picoc is now feature frozen. Since it's important that it remain small it's
intended that no more major features will be added from now on. It's been
tested on x86-32, x86-64, powerpc, arm, ultrasparc, HP-PA and blackfin
processors and is easy to port to new targets.
Compiling picoc
---------------
picoc can be compiled for a UNIX/Linux/POSIX host by typing "make".
The test suite can be run by typing "make test".
Porting picoc
-------------
platform.h is where you select your platform type and specify the includes
etc. for your platform.
platform_XXX.c contains support functions so the compiler can work on
your platform, such as how to write characters to the console etc..
platform_library.c contains your library of functions you want to make
available to user programs.
There's also a clibrary.c which contains user library functions like
printf() which are platform-independent.
Porting the system will involve setting up suitable includes and defines
in platform.h, writing some I/O routines in platform_XXX.c, putting
whatever user functions you want in platform_library.c and then changing
the main program in picoc.c to whatever you need to do to get programs
into the system.
platform.h is set to UNIX_HOST by default so tests can be easily run on
a UNIX system. You'll need to specify your own host setup dependent on
your target platform.
Copyright
---------
picoc is published under the "New BSD License".
http://www.opensource.org/licenses/bsd-license.php
Copyright (c) 2009-2011, Zik Saleeba
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
* Neither the name of the Zik Saleeba nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
没有合适的资源?快使用搜索试试~ 我知道了~
C语言解析器PicoC在STM32上的应用
共425个文件
c:115个
d:54个
o:54个
5星 · 超过95%的资源 需积分: 1 115 下载量 147 浏览量
2015-10-03
16:05:10
上传
评论 1
收藏 7.42MB ZIP 举报
温馨提示
别人的PicoC例程修改了一下,可以继续作脚本语言的功能
资源推荐
资源详情
资源评论
收起资源包目录
C语言解析器PicoC在STM32上的应用 (425个子文件)
platform_stm32.__i 497B
library_stm32.__i 493B
expression.__i 486B
variable.__i 478B
clibrary.__i 478B
platform.__i 478B
stdbool.__i 477B
test_code.__i 477B
include.__i 474B
string.__i 473B
stdlib.__i 473B
xcli_cmd.__i 472B
stdio.__i 469B
ctype.__i 469B
errno.__i 469B
table.__i 466B
parse.__i 466B
math.__i 465B
time.__i 465B
type.__i 462B
heap.__i 462B
picoc.__i 461B
lex.__i 458B
xcli.__i 456B
main.__i 446B
bsp.__i 446B
.axf 581KB
STM32F10x.uvgui_LinQian.bak 143KB
STM32F10x_uvopt.bak 38KB
STM32F10x_uvproj.bak 29KB
stm32f10x_tim.c 107KB
expression.c 66KB
stm32f10x_flash.c 61KB
stm32f10x_rcc.c 50KB
stm32f10x_adc.c 46KB
stm32f10x_i2c.c 45KB
stm32f10x_can.c 44KB
stm32f10x_usart.c 37KB
system_stm32f10x.c 36KB
stm32f10x_fsmc.c 35KB
lex.c 34KB
library_surveyor.c 33KB
parse.c 30KB
stm32f10x_spi.c 30KB
stm32f10x_dma.c 29KB
stm32f10x_sdio.c 28KB
library_srv1.c 28KB
stdio.c 27KB
clibrary.c 23KB
stm32f10x_gpio.c 23KB
unistd.c 19KB
type.c 19KB
Serial.c 19KB
stm32f10x_dac.c 19KB
core_cm3.c 17KB
46_grep.c 15KB
errno.c 15KB
variable.c 13KB
stm32f10x_cec.c 11KB
heap.c 10KB
stm32f10x_pwr.c 9KB
stm32f10x_rtc.c 8KB
stm32f10x_bkp.c 8KB
math.c 7KB
string.c 7KB
misc.c 7KB
stm32f10x_exti.c 7KB
platform.c 7KB
stdlib.c 6KB
table.c 6KB
stm32f10x_wwdg.c 6KB
stm32f10x_dbgmcu.c 5KB
stm32f10x_iwdg.c 5KB
BSP.c 5KB
stm32f10x_it.c 4KB
time.c 4KB
32_led.c 4KB
ctype.c 4KB
include.c 4KB
xCLI_cmd.c 4KB
main.c 3KB
stm32f10x_crc.c 3KB
30_hanoi.c 3KB
picoc.c 3KB
xCLI.c 3KB
platform_unix.c 2KB
test_code.c 2KB
platform_stm32.c 2KB
library_stm32.c 2KB
platform_surveyor.c 1KB
25_quicksort.c 1KB
platform_ffox.c 1014B
22_floating_point.c 988B
28_strings.c 834B
40_stdio.c 832B
41_hashif.c 807B
library_unix.c 726B
stdbool.c 718B
11_precedence.c 692B
54_goto.c 658B
共 425 条
- 1
- 2
- 3
- 4
- 5
资源评论
- xiatian_xjtu2016-07-01不错,看明白得一阵儿
- 绅士祥2019-12-26很好,推荐大家下载
- Jaesoon2020-09-02不错不错,值得学习
LQ1846
- 粉丝: 0
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功