{"id":13782898,"url":"https://github.com/Prashant47/picoc","last_synced_at":"2025-05-11T16:33:38.226Z","repository":{"id":12485442,"uuid":"15154784","full_name":"Prashant47/picoc","owner":"Prashant47","description":"Porting picoc interpreter to xv6","archived":false,"fork":false,"pushed_at":"2014-03-18T11:57:49.000Z","size":932,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-24T16:14:43.978Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Prashant47.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-13T04:32:12.000Z","updated_at":"2015-03-10T17:28:16.000Z","dependencies_parsed_at":"2022-09-23T07:40:31.574Z","dependency_job_id":null,"html_url":"https://github.com/Prashant47/picoc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prashant47%2Fpicoc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prashant47%2Fpicoc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prashant47%2Fpicoc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prashant47%2Fpicoc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Prashant47","download_url":"https://codeload.github.com/Prashant47/picoc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213838104,"owners_count":15645778,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T18:01:47.498Z","updated_at":"2024-08-03T18:11:00.425Z","avatar_url":"https://github.com/Prashant47.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"picoc\n-----\n\nPicoC is a very small C interpreter for scripting. It was originally written \nas a script language for a UAV's on-board flight system. It's also very \nsuitable for other robotic, embedded and non-embedded applications.\n\nThe core C source code is around 3500 lines of code. It's not intended to be \na complete implementation of ISO C but it has all the essentials. When \ncompiled it only takes a few k of code space and is also very sparing of \ndata space. This means it can work well in small embedded devices. It's also \na fun example of how to create a very small language implementation while \nstill keeping the code readable.\n\npicoc is now feature frozen. Since it's important that it remain small it's \nintended that no more major features will be added from now on. It's been \ntested on x86-32, x86-64, powerpc, arm, ultrasparc, HP-PA and blackfin \nprocessors and is easy to port to new targets. \n\n\nCompiling picoc\n---------------\n\npicoc can be compiled for a UNIX/Linux/POSIX host by typing \"make\".\n\nThe test suite can be run by typing \"make test\".\n\n\nPorting picoc\n-------------\n\nplatform.h is where you select your platform type and specify the includes \netc. for your platform.\n\nplatform_XXX.c contains support functions so the compiler can work on \nyour platform, such as how to write characters to the console etc..\n\nplatform_library.c contains your library of functions you want to make \navailable to user programs.\n\nThere's also a clibrary.c which contains user library functions like \nprintf() which are platform-independent.\n\nPorting the system will involve setting up suitable includes and defines \nin platform.h, writing some I/O routines in platform_XXX.c, putting \nwhatever user functions you want in platform_library.c and then changing \nthe main program in picoc.c to whatever you need to do to get programs \ninto the system.\n\nplatform.h is set to UNIX_HOST by default so tests can be easily run on\na UNIX system. You'll need to specify your own host setup dependent on \nyour target platform.\n\n\nCopyright\n---------\n\npicoc is published under the \"New BSD License\".\nhttp://www.opensource.org/licenses/bsd-license.php\n\n\nCopyright (c) 2009-2011, Zik Saleeba\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without \nmodification, are permitted provided that the following conditions are \nmet:\n\n    * Redistributions of source code must retain the above copyright \n      notice, this list of conditions and the following disclaimer.\n      \n    * Redistributions in binary form must reproduce the above copyright \n      notice, this list of conditions and the following disclaimer in \n      the documentation and/or other materials provided with the \n      distribution.\n      \n    * Neither the name of the Zik Saleeba nor the names of its \n      contributors may be used to endorse or promote products derived \n      from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT \nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR \nA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT \nOWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, \nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT \nLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, \nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY \nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT \n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE \nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPrashant47%2Fpicoc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPrashant47%2Fpicoc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPrashant47%2Fpicoc/lists"}