printf("The CoreMark is runing,Please Wait...\r\n"); if (sizeof(ee_ptr_int) != sizeof(ee_u8 *)) { ee_printf("ERROR! Please define ee_ptr_int to a type that holds a pointer!\n"); } if (sizeof(ee_u32) != 4) { ee_printf("ERROR! Please define ee_u32 to a 32b uns...
voidportable_init(core_portable *p,int*argc,char*argv[]){ (void)argc;// prevent unused warning(void)argv;// prevent unused warningif(sizeof(ee_ptr_int) !=sizeof(ee_u8 *)) { ee_printf("ERROR! Please define ee_ptr_int to a type that holds a ""pointer!\n"); }if(sizeof(ee_u...
在SiFive的CoreMark仓库中,有一个很有意思的提交,将ee_u32的原始类型由unsigned int改为signed int(后文统一使用uint32_t和int32_t表示)。使用RV64GC指令集时,这个改动导致指令数从 363781 降到了 308973 (编译参数-O2 -fno-builtin),指令数降幅达到15%,但是当使用RV32GC指令集时,指令数仅从 308105 变到...
void portable_init(core_portable *p, int *argc, char *argv[]) { ARG_UNUSED(argc); ARG_UNUSED(argv); if (sizeof(ee_ptr_int) != sizeof(ee_u8 *)) { ee_printf( "ERROR! Please define ee_ptr_int to a type that holds a " "pointer!\n"); k_panic(); } if (sizeof(ee_u32...
(Int_1_Loc,Int_2_Loc,&Int_3_Loc);/* Int_3_Loc == 7 */Int_1_Loc+=1;}/* while *//* Int_1_Loc == 3, Int_2_Loc == 3, Int_3_Loc == 7 */Proc_8(Arr_1_Glob,Arr_2_Glob,Int_1_Loc,Int_3_Loc);/* Int_Glob == 5 */Proc_1(Ptr_Glob);for(Ch_Index='A';Ch_...
修改前 : void portable_init(core_portable *p, int *argc, char *argv[]) { if (sizeof(ee_ptr_int) != sizeof(ee_u8 *)) { ee_printf(ERROR! Please define ee_ptr_int to a type that holds a pointer!\n); } if (sizeof(ee_u32) != 4) { ee_printf(ERROR! Please define ee_u...
Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {{ message }} Rafal-Nordic / sdk-nrf Public forked from nrfconnect/sdk-nrf Notifications You must be signed in to change notification settings ...
ee_printf("Compiler version : %s\n", COMPILER_VERSION); ee_printf("Compiler flags : %s\n", COMPILER_FLAGS); 1.2 coremark 移植方法 由1.1 我们就可以知道,其实coremark 就是跑个程序n 循环,然后计算一个 指令/时间/频率 这样的结果,所以我们移植只需要给出以下几个参数 ...
voidportable_init(core_portable *p,int*argc,char*argv[]){ (void)argc;// prevent unused warning(void)argv;// prevent unused warningif(sizeof(ee_ptr_int) !=sizeof(ee_u8 *)) { ee_printf("ERROR! Please define ee_ptr_int to a type that holds a ""pointer!\\n"); ...
登录后复制voidportable_init(core_portable *p,int*argc,char*argv[]){ (void)argc;// prevent unused warning(void)argv;// prevent unused warningif(sizeof(ee_ptr_int) !=sizeof(ee_u8 *)) { ee_printf("ERROR! Please define ee_ptr_int to a type that holds a ""pointer!\\n"); ...