There is no 'printf'
netmeister.org
There is no 'printf'
1–10 of 158 posts
Re: There is no 'printf'
#2Re: There is no 'printf'
#3Re: There is no 'printf'
#4Re: There is no 'printf'
#5Because if you put in
return 1+2+3;
And look at the assembly code, you will see that the compiler generated something like return 6;
The compiler is allowed to take advantage of the standard to substitute in more efficient code that does the same thing.IIRC, for C++, it would actually be ok if std::vector was implemented completely as a compiler intrinsic with no actual header file. (No compiler I am aware of actually does it that way).
Re: There is no 'printf'
#6Re: There is no 'printf'
#7Re: There is no 'printf'
#8This is a bit like saying there is no '+'; Because if you put in return 1+2+3; And look at the assembly code, you will see that the compiler generated something like return 6; The compiler is allowed to take advantage of the standard to substitute in more efficient code that does the same thing. IIRC, for C++, it would actually be ok if std::vector was implemented completely as a compiler intrinsic with no actual hea…
https://www.thecodingforums.com/threads/what-is-the-meaning-...
Re: There is no 'printf'
#9Apparently there is no available capacity for that site either.
Re: There is no 'printf'
#10This is a bit like saying there is no '+'; Because if you put in return 1+2+3; And look at the assembly code, you will see that the compiler generated something like return 6; The compiler is allowed to take advantage of the standard to substitute in more efficient code that does the same thing. IIRC, for C++, it would actually be ok if std::vector was implemented completely as a compiler intrinsic with no actual hea…
In this case, it produces a different result.