in which language are definitions of built in functions like printf written...assembly or C?
DJSAN10 28 Posting Whiz in Training
Recommended Answers
Jump to PostAlso in assembly.
Jump to Postm a bit confused...how can it b written in C coz again u will need a C compiler to compile it..
also if it is written in assembly..then how can the code run on different machines..i mean,assembly language would be different for different architectures,won't it..??printf() is not a built-in …
Jump to PostYeah, so? You compile C-version-6 with the compiler C-version-5 and you have an updated compiler.
And that's the Chick & Egg dilemma. What did K&R use the build the first C compiler (see the answer here)?
All 10 Replies
dkalita 110 Posting Pro in Training
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
DJSAN10 28 Posting Whiz in Training
DJSAN10 28 Posting Whiz in Training
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
lisaroy1 0 Light Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
jnawrocki -3 Light Poster
DJSAN10 28 Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.