---
title: "Why compiling on hosts hurts"
---

> Documentation Index
> Fetch the complete documentation index at: https://example.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Why compiling on hosts hurts

Early tools like [BCC](https://example.com/ebpf-field-guide/glossary/#bcc) solved struct drift by shipping Clang/LLVM and kernel headers onto every host, compiling C code into eBPF at startup against the local headers.

That is great for laptop debugging and *terrible* for production NF servers: hundreds of megabytes of image bloat, startup CPU spikes, and compilers sitting on hardened telecom nodes.

## Production pain with BCC

- Minimal 15 MB daemon → 350 MB LLVM container image
- Instant agent start → multi-second Clang CPU spike
- Self-contained binary → breaks if kernel-devel headers missing

Source: https://example.com/ebpf-field-guide/portability-and-toolchain/btf-and-core/bcc-cost/index.mdx
