开发者

How many data types are there in Assembly language?

开发者 https://www.devze.com 2023-02-16 06:50 出处:网络
In c/c++ there\'re too many native data types. What about assembly langua开发者_JAVA百科ges?In most assembly languages, there are no data types at all.It\'s entirely the programmer\'s responsibility

In c/c++ there're too many native data types.

What about assembly langua开发者_JAVA百科ges?


In most assembly languages, there are no data types at all. It's entirely the programmer's responsibility to make sure that all of the code agrees on what's what. There are still usually various directives that you can use to get specific bytes/words/etc into memory, but there's definitely no type checking of any kind.


In x86 assembly, there are 8, 16, 32 (and 64 bit) integer as well as floating point registers. There are also index and stack registers for accessing memory. Anything more complex than that and you use a pointer to the structure and offsets to access the elements.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号