8位微控制器(如8051)上的指针大小是多少? [英] What will be the size of pointer on a 8 bit microcontroller like 8051?

查看:75
本文介绍了8位微控制器(如8051)上的指针大小是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们知道指针的大小取决于地址总线,那么像8051这样的8位微控制器上的指针大小是多少?

We know that size of the pointer depends on address bus,so what will be the size of pointer on 8 bit microcontroller like 8051?

推荐答案

8051不是C友好处理器.

The 8051 is not a C friendly processor.

它有几个地址空间.我广泛使用了Keil 8051编译器,它具有几种指针类型.

It has several address spaces. I used the Keil 8051 compiler extensively and it had several pointer types.

  • 一个8位指针,指向内部存储器空间或内部间接空间.
  • 一个16位指针,指向外部ram或代码空间.
  • 一个智能" 24位指针,可以指向任何地方.基本上是一个标签,后跟16位.

所有这些都没有增加银行转换方案的复杂性,这使事情变得更加有趣".

All of this is without the added complexity of bank switching schemes that make things even more "interesting".

应该避免使用智能指针,因为它们又大又慢.

The smart pointers where to be avoided because they were big and slow.

这篇关于8位微控制器(如8051)上的指针大小是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆