hi guys
writing small hello world program,
int main(int argc, char *argv[])
{
if (Counter1 >= 100)
{
Counter1=0;
}
else
{Counter1++;}
Counter6[0]=100;
Counter6[199]=100;
Counter5[1]=100;
Counter5[99]=100;
myPrintHelloMake();
/* BswM_MainFunction();
Dcm_MainFunctionTimer();
Dcm_MainFunction(); */
mul_div(1,2,4);
return 0;
}
linker options used along with runt time library libc.a
--emit_warnings_as_errors
-qq --diag_warning=225 --diag_suppress=23000
-w -q
-c
-mv7R5
--diag_suppress=10063
--abi=eabi
--embedded_constants=on
--object_format=elf
--quiet
--silicon_version=7R5
--issue_remarks
--rom_model
--heap_size=0x8000
I am able link program and generate .elf/.hex
but I am really now sure as my helloworld program is linked as from .map output file is
SECTION ALLOCATION MAP
output attributes/
section page origin length input sections
-------- ---- ---------- ---------- ----------------
.OS_EXCVEC_CORE0_CODE
* 0 41010000 00000000 UNINITIALIZED
.cinit 0 41ce2100 00000000 UNINITIALIZED
__llvm_prf_cnts
* 0 9d000000 00000000 UNINITIALIZED
MODULE SUMMARY
how to make sure libc.a will call out main function(defined in helloworld) so that all samples code will get link in .elf/hex