ArticleslgStudy

computer science

Google Native Client

Google Native Client is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Google Native Client rather than just read about it. In short: Google Native Client (NaCl) is a discontinued sandboxing technology for running either a subset of Intel x86, ARM (or experimentally MIPS) native code, or a portable executable, in a sandbox. Google Chrome and other Chromium-based web browsers incorporated NaCl to safely run native code within web apps and browser extensions, largely independent of the user operating system and at near-native speeds.

Key takeaways

  • Google Native Client belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Google Native Client to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Google Native Client from memory before moving on to harder problems.

Reference excerpt

Google Native Client (NaCl) is a discontinued sandboxing technology for running either a subset of Intel x86, ARM (or experimentally MIPS) native code, or a portable executable, in a sandbox. Google Chrome and other Chromium-based web browsers incorporated NaCl to safely run native code within web apps and browser extensions, largely independent of the user operating system and at near-native speeds. This capability was imperative for Google's plans for ChromeOS as a general-purpose computing platform. NaCl was also used for securing browser plugins, like Adobe Flash Player, and parts of other applications or full applications such as ZeroVM. The general concept of NaCl (running native code in the web browser) has been implemented before in ActiveX, but NaCl runs content in a sandbox while ActiveX application has full access to the system (disk, memory, user-interface, registry, etc.). Mozilla proposed asm.js as an alternative to both ActiveX and NaCl. asm.js also allows applications written in C or C++ to be compiled to run in the browser and also supports ahead-of-time compilation, but is a subset of JavaScript and hence backwards-compatible with browsers that do not support it directly. On May 30, 2017, Google announced deprecation of PNaCl in favor of WebAssembly. Over the following years, Google Chrome slowly deprecated and removed NaCl on different platforms, finalizing removal in July 2025 with the release of ChromeOS 139.

Overview Native Client was an open-source project developed by Google. Games such as Quake, XaoS, Battle for Wesnoth, Doom, Lara Croft and the Guardian of Light, From Dust, and MAME, as well as the sound processing system Csound, have been ported to Native Client. Native Client has been available in the Google Chrome web browser since version 14, and has been enabled by default since version 31, when the Portable Native Client (PNaCl, pronounced: pinnacle) was released. Native Client has also been used to safely run downloaded code in software other than web browsers, like in the Dæmon game engine. An ARM implementation was released in March 2010. x86-64 and IA-32 were also officially supported, while MIPS support was experimental. To run an application portably under PNaCl, it must be compiled to an architecture-agnostic and stable subset of the LLVM intermediate representation bytecode. The executables are called PNaCl executables (pexes). The PNaCl Toolchain makes .pexe files; NaCl Toolchain .nexe files. The magic number of .nexe files is 0x7F 'E' 'L' 'F', which is ELF. In Chrome, they are translated to architecture-specific executables so that they can be run. NaCl uses software fault detection and isolation for sandboxing on x86-64 and ARM. The x86-32 implementation of Native Client is notable for its novel sandboxing method, which makes use of the x86 architecture's rarely used segmentation facility. Native Client sets up x86 segments to restrict the memory range that the sandboxed code can access. It uses a code verifier to prevent use of unsafe instructions such as those that perform system calls. To prevent the code from jumping to an unsafe instruction hidden in the middle of a safe instruction, Native Client requires that all indirect jumps be jumps to the start of 32-byte-aligned blocks, and instructions are not allowed to straddle these blocks. Because of these constraints, C and C++ code must be recompiled to run under Native Client, which provides customized versions of the GNU toolchain, specifically GNU Compiler Collection (GCC), GNU Binutils, and LLVM. Native Client is licensed under a BSD-style license. Native Client uses Newlib as its C library, but a port of GNU C Library (GNU libc) is also available.

History On 8 December 2008, Google introduced Native Client to the public shortly after the September introduction of Google Chrome. NaCl became generally available to the web when it was released in a stable Chrome version in September 2011. On 9 December 2011, Google demonstrated the readiness of the technology by announcing availability of several new Chrome-only versions of games known for their rich and processor-intensive graphics, including Bastion (no longer supported on the Chrome Web Store). NaCl runs hardware-accelerated 3D graphics (via OpenGL ES 2.0), sandboxed local file storage, dynamic loading, full screen mode, and mouse capture. There were also plans to make NaCl available on handheld devices. In 2013 Google introduced the Portable Native Client (PNaCl), an architecture-independent compiled ahead-of-time version of NaCl. Portable Native Client (PNaCl) is an architecture-independent version. PNaCl apps are compiled ahead-of-time. PNaCl is recommended over NaCl for most use cases. The general concept of NaCl (running native code in web browser) has been implemented before in ActiveX, which, while still in use, has full access to the system (disk, memory, user-interface, registry, etc.). Native Client avoids this issue by using sandboxing. An alternative by Mozilla was asm.js, which also allows applications written in C or C++ to be compiled to run in the browser and also supports ahead-of-time compilation, but is a subset of JavaScript and hence backwards-compatible with browsers that do not support it directly. On 12 October 2016, a comment on the Chromium issue tracker indicated that Google's Pepper and Native Client teams had been destaffed. On 30 May 2017, Google announced deprecation of PNaCl in favor of WebAssembly. Although initially Google planned to remove PNaCl in first quarter of 2018, and later in the second quarter of 2019, it has been removed in June 2022 (together with Chrome Apps). Support in ChromeOS continued up to ChromeOS 138 and ended in July 2025 with the release of ChromeOS 139 dropping Native Client support. LLVM 22, released in February 2026, became the first version to lose support for building NaCl binaries.

Pepper

NaCl denotes sodium chloride, common table salt; as a pun, the name of pepper was also used. Pepper API is a cross-platform, open-source API for creating Native Client modules. Pepper Plugin API, or PPAPI is a cross-platform API for Native Client-secured web browser plugins, first based on Netscape's NPAPI, then rewritten from scratch. It was used in Chromium and Google Chrome to enable the PPAPI version of Adobe Flash and the built-in PDF viewer.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Google Native Client

Start with the simplest possible case. Write down what Google Native Client claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Google Native Client before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Google Native Client ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Google Native Client

In research
Google Native Client appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Google Native Client in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Google Native Client is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer security software, Cross-platform free software, Google software, so understanding it makes those chapters shorter.
In everyday life
Look for Google Native Client outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Google Native Client” →

How to study Google Native Client in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Google Native Client means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Google Native Client out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Google Native Client in simple terms?

Google Native Client (NaCl) is a discontinued sandboxing technology for running either a subset of Intel x86, ARM (or experimentally MIPS) native code, or a portable executable, in a sandbox. Google Chrome and other Chromium-based web browsers incorporated NaCl to safely run native code within web…

Why does Google Native Client matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Google Native Client?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Google Native Client.

Tags

  • Computer security software
  • Cross-platform free software
  • Google software
  • Software using the BSD license

Keep exploring