NBC(1)
π NBC(1) β bestie edition π
General Commands Manual β¨ section 1, the "just type it in the terminal" zone π«Ά
πΈ NAME πΈ
nbc β the compiler for LEGO Mindstorms NXT, and yes she EATS π
β¨ SYNOPSIS β¨
nbc [options] file [options]
π¦ DESCRIPTION π¦
okay so first thing, this manual page is just a brief lil rundown of the nbc command, got it? it's giving "overview", not "the whole saga" π
nbc is the program that compiles Not eXactly C (NXC) files or NeXT Byte Code (NBC) files into programs that can actually run on the standard LEGO MINDSTORMS NXT firmware β or on the enhanced NBC/NXC firmware, if that's your vibe π₯
the nbc compiler can either save the compiler output to a file, or upload it straight to a LEGO Mindstorms NXT for execution. main character energy either way β¨
she can also compile NXT Picture files (.ric) using the text-based RICScript language. so yes, multiple languages, one iconic compiler π
and since nbc can compile different programming languages, it uses the file extension to figure out which kind of code it's looking at:
NXCprograms should use the.nxcfile extension πΈNBCprograms should use the.nbcfile extension πRICScriptprograms should use the.rsfile extension π¦
no cap, the extension IS the vibe check.
π OPTIONS π
-S=<portname>β specify port name (COMnorusb), resource name, or alias π-dβ download program β¬οΈ-bβ treat input file as a binary file (don't compile it) π-qβ quiet mode π€«-nβ prevent the system file from being included π-D=<sym>[=<value>]β define macro<sym>β¨-xβ decompile program π-Z[1|2]β turn on compiler optimizations β‘-ER=nβ set maximum errors before aborting (0== no limit) π-PD=nβ set max preprocessor recursion depth (default ==10) π-O=<filename>β specify output file π-E=<filename>β write compiler errors to<filename>π-I=<path>β search<path>for include files π-nbc=<filename>β save NXC intermediate NBC code to<filename>πΎ-L=<filename>β generate code listing to<filename>π-Y=<filename>β generate symbol table to<filename>ποΈ-w[-|+]β warnings off or on [default is on] β οΈ-sm[-|+]β compiler status messages off or on [default is on] π¬-EFβ enhanced firmware π-safecallβ NXC will wrap all function calls inAcquire/Releaseπ‘οΈ-apiβ dump the API to stdout π¨οΈ-v=nβ set the targeted firmware version (default ==128, NXT 1.1 ==105) π’-helpβ display command line options π
π«Ά AUTHOR π«Ά
nbc was written by John Hansen. periodt. π
this manual page was written by Sebastian Reichel <elektranox@gmail.com>, for the Debian project (but may be used by others) πΈ
and that's the whole thing bestie, tysm for reading, ily π₯Ή
September 21, 2009 πΈ NBC(1) β slay, go compile something iconic π β¨
π¦ where this page comes from
- debian bookworm: nbc 1.2.1.r4+dfsg-11+b1 Β· MPL-1.1
- debian trixie: nbc 1.2.1.r4+dfsg-14 Β· MPL-1.1
- ubuntu jammy: nbc 1.2.1.r4+dfsg-11 Β· MPL-1.1
- ubuntu noble: nbc 1.2.1.r4+dfsg-11 Β· MPL-1.1
- ubuntu questing: nbc 1.2.1.r4+dfsg-14
- ubuntu resolute: nbc 1.2.1.r4+dfsg-16 Β· MPL-1.1
- ubuntu stonking: nbc 1.2.1.r4+dfsg-16 Β· MPL-1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms