Embedded C & Registers
This page is mostly for Intel's firmware, BIOS and platform candidates, whose embedded C test is built from registers, interrupts and the bit work below. Validation candidates will see parts of it too. On a systems software, compiler or AI track, the byte swap is likely as deep as this goes, so skim the rest and put the hours into OS & Concurrency.
The work itself looks familiar. A network header arrives big-endian and has to be flipped before x86 can read it. A control register holds a clock divider in four of its bits, next to an enable bit and a busy flag the hardware owns. You use the usual operators, &, |, ^ and the two shifts, but now every bit means something.
Mistakes here don't crash. Move a byte to the wrong lane, or OR a field in without clearing it first, and the device runs at the wrong clock or reads a length of 1 as 16,777,216. The bug shows up far from the line that caused it. On the firmware test, a buffer shared with an interrupt handler is a common task, and the ring buffer further down covers it.
ntohl or __builtin_bswap32, which x86 turns into a single BSWAP, and it swaps through a temporary that the register renamer makes nearly free. Write the masks and shifts by hand because the interviewer asks for them, then say what you would ship. Knowing both helps when the conversation turns to a datasheet or to computer architecture.IntelPremium lesson · Coding round
The 5 Intel problems are below.
- A Premium questionCoding · Easy · Frequently asked
- A Premium questionCoding · Easy · Frequently asked
- A Premium questionCoding · Easy
+ 2 more in this lesson
Each with hints, the follow-up and a tested solution.
Get the Intel questions$49 a year · all 100 companies · cancel anytime
From 20,000+ candidate reports, forum threads behind logins and write-ups in Chinese.
Intel interview guideKnow what Intel asks before you walk in.
26 coding · 3 system design · 13 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.