首页| 论坛| 消息
主题:mtk如何编译.ko
wowo发表于 2017-03-08 14:18
问题:如何在mtk平台上编译生成.ko,然后push到手机里面运行,debug,或者在linux上运行
example:

#include
#include
#include
int bss_var;
int data_var0=1;
int main(int argc,char **argv)
{
printf("below are addresses of types of process's mem\n");
printf("Text location:\n");
printf("\tAddress of main(Code Segment):%p\n",main);
printf("____________________________\n");
int stack_var0=2;
printf("Stack Location:\n");
printf("\tInitial end of stack:%p\n",&stack_var0);
int stack_var1=3;
printf("\tnew end of stack:%p\n",&stack_var1);
printf("____________________________\n");
printf("Data Location:\n");
printf("\tAddress of data_var(Data Segment):%p\n",&data_var0);
static int data_var1=4;
printf("\tNew end of data_var(Da
下一页 (1/4)
回帖(1):
1楼:今天研究了下ko,按照如下步骤,在mtk平台上,ko 测试程序可以编译 ..

全部回帖(1)»
最新回帖
收藏本帖
发新帖