[{"data":1,"prerenderedAt":160},["ShallowReactive",2],{"term-b\u002Fbinary":3,"related-b\u002Fbinary":146},{"id":4,"title":5,"acronym":6,"body":7,"category":127,"description":128,"difficulty":129,"extension":130,"letter":131,"meta":132,"navigation":71,"path":133,"related":134,"seo":140,"sitemap":141,"stem":144,"subcategory":6,"__hash__":145},"terms\u002Fterms\u002Fb\u002Fbinary.md","Binary",null,{"type":8,"value":9,"toc":121},"minimark",[10,15,19,23,26,30,110,114,117],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"A binary is a file your computer can run directly — it has already been translated from human-readable code into the 1s and 0s the CPU speaks. When you 'compile' code, you turn it into a binary. That is why compiled programs are fast: the computer does not need to translate anything.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"A binary (or executable) is a compiled program stored in machine code — the native instruction set of the CPU. Unlike source code, binaries are not human-readable. Compiled languages like C, C++, Go, and Rust produce binaries. The term also refers to the binary number system (base-2) used in all digital computing.",[11,27,29],{"id":28},"show-me-the-code","Show Me The Code",[31,32,37],"pre",{"className":33,"code":34,"language":35,"meta":36,"style":36},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Compile a C program into a binary:\ngcc main.c -o my_program\n\n# Run the binary:\n.\u002Fmy_program\n\n# Check if a file is a binary:\nfile my_program\n# my_program: Mach-O 64-bit executable x86_64\n","bash","",[38,39,40,49,66,73,79,85,90,96,104],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,48],{"class":47},"sHwdD","# Compile a C program into a binary:\n",[41,50,52,56,60,63],{"class":43,"line":51},2,[41,53,55],{"class":54},"sBMFI","gcc",[41,57,59],{"class":58},"sfazB"," main.c",[41,61,62],{"class":58}," -o",[41,64,65],{"class":58}," my_program\n",[41,67,69],{"class":43,"line":68},3,[41,70,72],{"emptyLinePlaceholder":71},true,"\n",[41,74,76],{"class":43,"line":75},4,[41,77,78],{"class":47},"# Run the binary:\n",[41,80,82],{"class":43,"line":81},5,[41,83,84],{"class":54},".\u002Fmy_program\n",[41,86,88],{"class":43,"line":87},6,[41,89,72],{"emptyLinePlaceholder":71},[41,91,93],{"class":43,"line":92},7,[41,94,95],{"class":47},"# Check if a file is a binary:\n",[41,97,99,102],{"class":43,"line":98},8,[41,100,101],{"class":54},"file",[41,103,65],{"class":58},[41,105,107],{"class":43,"line":106},9,[41,108,109],{"class":47},"# my_program: Mach-O 64-bit executable x86_64\n",[11,111,113],{"id":112},"when-youll-hear-this","When You'll Hear This",[16,115,116],{},"\"Ship the binary, not the source code.\" \u002F \"The build step creates a binary that runs on the server.\"",[118,119,120],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":36,"searchDepth":51,"depth":51,"links":122},[123,124,125,126],{"id":13,"depth":51,"text":14},{"id":21,"depth":51,"text":22},{"id":28,"depth":51,"text":29},{"id":112,"depth":51,"text":113},"general","A binary is a file your computer can run directly — it has already been translated from human-readable code into the 1s and 0s the CPU speaks.","intermediate","md","b",{},"\u002Fterms\u002Fb\u002Fbinary",[135,136,137,138,139],"Compiler","Runtime","Interpreter","Build","Executable",{"title":5,"description":128},{"changefreq":142,"priority":143},"weekly",0.7,"terms\u002Fb\u002Fbinary","mHboRF_WyqsCR-xFnNm5xcPHu93piI7ywyo3XpyBHgM",[147,151,154,157],{"title":138,"path":148,"acronym":6,"category":127,"difficulty":149,"description":150},"\u002Fterms\u002Fb\u002Fbuild","beginner","A build is the process of turning your development code into something a real computer or browser can run efficiently.",{"title":135,"path":152,"acronym":6,"category":127,"difficulty":129,"description":153},"\u002Fterms\u002Fc\u002Fcompiler","A compiler is like a translator that reads your entire code book, converts it all into a language the CPU understands, and hands you the finished translate...",{"title":137,"path":155,"acronym":6,"category":127,"difficulty":129,"description":156},"\u002Fterms\u002Fi\u002Finterpreter","An interpreter reads your code and runs it line by line in real time, like a live translator at a conference.",{"title":136,"path":158,"acronym":6,"category":127,"difficulty":129,"description":159},"\u002Fterms\u002Fr\u002Fruntime","Runtime is the environment where your code actually runs.",1776518260159]