OpenCores
no use no use 1/1 no use no use
can newlib toolchain run multi-threaded c-program
by avamsi on Apr 25, 2012
avamsi
Posts: 54
Joined: Apr 16, 2012
Last seen: Jul 30, 2014
Hi,

I want to run a multi threaded c-program on newlib tool chain. Do I need to build additional libraries to build those application(ex:pthread). Please list them and explain how to add those libraries.

Thanks,
A.Vamsi
RE: can newlib toolchain run multi-threaded c-program
by skrzyp on Apr 27, 2012
skrzyp
Posts: 28
Joined: Jun 9, 2011
Last seen: Jan 25, 2013
Hello

You can easily develop multithreaded programs using eCos RTOS. All steps to build eCos app are documented here: http://opencores.org/or1k/ECos Please let me know if you feel anything is missing.

Here you can find an example code of multithreaded program: http://ecos.sourceware.org/docs-1.3.1/tutorials/vr4300/ecos-tutorial.13.html

Best regards
Piotr Skrzypek
RE: can newlib toolchain run multi-threaded c-program
by jeremybennett on Apr 30, 2012
jeremybennett
Posts: 815
Joined: May 29, 2008
Last seen: Jun 13, 2019

Hi avamsi

Newlib doesn't support multi-threading. It is a very simple C library for bare metal use. Threads require some sort of underlying operating system.

You are best following Piotr's suggestion. If you don't like eCos, there are other RTOS available - the Wiki (http://opencores.org/or1k/OR1K:Community_portal) lists them.

Best wishes,

Jeremy

--
Tel: +44 (1590) 610184
Cell: +44 (7970) 676050
SkypeID: jeremybennett
Email: jeremy.bennett@embecosm.com
Web: www.embecosm.com

no use no use 1/1 no use no use
© copyright 1999-2026 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.