i have this code set up on vsd 2005, thefore i cannot find it into IDA the function sum, second people answer my ask in previous community, this was optimize by compiler. can there is any config for it, to don't optimize samples things?
#include <iostream>
extern "C" {
int sum(unsigned char s1 = 10, int s3 = 25) {
s3 = s1 * (s3);
}
}
int main() {
int y = 50;
int x = 50;
return 0;
}
ENCONTREI ESTE Start
_int64 start()
{
unk_407610 = 0;
sub_401660();
return sub_401180();
}
ENCONTREI ESTE MAIN
.text:0000000000402C10 ; int __cdecl main(int argc, const char **argv, const char **envp)
.text:0000000000402C10 main proc near ; CODE XREF: sub_401180+242↑p
.text:0000000000402C10 ; DATA XREF: .pdata:0000000000405258↓o ...
.text:0000000000402C10 sub rsp, 28h
.text:0000000000402C14 call sub_401620
.text:0000000000402C19 xor eax, eax
.text:0000000000402C1B add rsp, 28h
.text:0000000000402C1F retn
.text:0000000000402C1F main endp
.text:0000000000402C1F
.text:0000000000401620 sub_401620 proc near ; CODE XREF: sub_401180+215↑p
.text:0000000000401620 ; main+4↓p
.text:0000000000401620 mov eax, cs:dword_407040
.text:0000000000401626 test eax, eax
.text:0000000000401628 jz short loc_401630
.text:000000000040162A retn
only now i am see that sum not have a return, i even not know as it have been compiled