Skip to content

Recent Posts

  • How To Rent a Dedicated Server?
  • Hoosha and the Rise of Farsi AI: Transforming Persian Digital Experiences Through Localized Intelligence
  • Products and services Given by a Look for Motor Optimization Enterprise
  • Information Interaction Engineering (ICT) – Definition, Positive aspects And Disadvantages
  • Resisting and Developing Improve – What Leaders Ought to Know

Most Used Categories

  • Tech News (512)
  • SEO (503)
  • Hosting (492)
  • Programmer (486)
  • Telecom (482)
  • Provider (271)
  • SocMed (213)
  • Business (27)
  • Technology (21)
  • Design & Development (11)
Skip to content
block blink

block blink

Experienced in technology

  • Tech News
  • SEO
  • Telecom
  • Programmer
  • Hosting
  • Provider
  • About Us
    • Advertise Here
    • Contact Us
    • Privacy Policy
    • Sitemap
  • Home
  • Pretty Petite Picolibc Powers Processors
Pretty Petite Picolibc Powers Processors

Pretty Petite Picolibc Powers Processors

Bunga CitraNovember 15, 2022

Many times when someone tells you that language X is “better” at something they really mean that it has better built-in libraries for that task. Java is a great example. The language isn’t all that different from C++ outside of garbage collection and multiple inheritance, but the standard libraries are super powerful, especially for networking.  Even C relies on a library to provide a lot of functions people think of as part of the language — printf, for example. That’s not really part of the C language, but just part of the standard library. When you are writing for a tiny processor, the choice of library is critical and [Keith Packard] offers you one choice: picolibc.

The library has its genesis from two other diminutive libraries: Newlib and the AVR version of libc. It provides support for ARC, ARM, i386, m68k, MIPS, MSP430, Nios II, PPC, RISC-V, Sparc64, x86_64, and the ESP8266/ESP32.

There is documentation for how to graft the library into your projects. That includes a few APIs that it expects from the operating environment. There are also documents on how the library uses thread local storage, locking, and other technical details.

Is it better than other choices? That’s not for us to say. You’ll have to build it on your exact platform and make your own comparisons. However, it is a viable candidate and since it is based on newlib, it should be fairly stable. You can debate if you should use printf, or not. Or you can just lean into it. But you can also use other parts of the library without delving into printf.

Even if you don’t need a tiny library, sometimes reading through library code for your chosen target can be illuminating. For example, how would you write an efficient strchr function? Now, look how they did it. Portability is the devil here since you could probably do even better with some CPU-specific instructions like AVX2 or SSE.

Title graphic courtesy [Priscilla Du Preez]

Petite, Picolibc, powers, Pretty, Processors

Post navigation

Previous: A Single Board Computer From A TV
Next: GBP Suspension and Reinstatement Chaos

Related Posts

How to Address Online Complaints Professionally

How to Address Online Complaints Professionally

September 21, 2024September 21, 2024 Bunga Citra
World wide web Internet hosting – What Website Hosting is All About

World wide web Internet hosting – What Website Hosting is All About

September 1, 2023September 16, 2023 Bunga Citra
The Reward of Adopting SaaS Solutions for Cloud-Based Asset Finance

The Reward of Adopting SaaS Solutions for Cloud-Based Asset Finance

August 11, 2023August 11, 2023 Bunga Citra

Recent Posts

  • How To Rent a Dedicated Server?
  • Hoosha and the Rise of Farsi AI: Transforming Persian Digital Experiences Through Localized Intelligence
  • Products and services Given by a Look for Motor Optimization Enterprise
  • Information Interaction Engineering (ICT) – Definition, Positive aspects And Disadvantages
  • Resisting and Developing Improve – What Leaders Ought to Know

Categories

  • Beauty
  • Business
  • Dental
  • Design & Development
  • Digital Marketing
  • Forex
  • Games
  • Health
  • Home Improvement
  • Hosting
  • Jewelry
  • Law and Legal
  • PC Game
  • Programmer
  • Provider
  • Real Estate
  • SEO
  • Small Business Tips
  • SocMed
  • Tech News
  • Technology
  • Telecom
  • Travel

Archives

BL

TECHNOLOGY
Copyright @ blockblink.com | Theme: BlockWP by Candid Themes.