如果我们要使用二进制文件,哪种编程语言更熟悉? [英] which programming language is more familiar if we are going to work with binary?

查看:137
本文介绍了如果我们要使用二进制文件,哪种编程语言更熟悉?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我们要使用二进制文件,哪种编程语言会更熟悉。

解决方案

所有计算机语言都使用二进制文件'或者更确切地说是'没有它工作。如果你要点''twiddling'',例如编写你自己的ieee754浮点实现,那么''C''是传统的选择语言,但是现在C ++在我看来是一个更好的选择当然总有汇编。

C或C ++对BASIC或Python甚至Pascal的优势在于,您可以精确控制内存中数据的布局,直至数据存储的物理内存地址。这就是为什么C用于系统编程,比如编写操作系统和硬件设备驱动程序,其中没有任何东西可以为您管理内存或阻止程序自身覆盖或者恰当位置的确切位数和字节数是关键的。

which programming language is more familiar if we are going to work with binary.

解决方案

All computer languages ''work with binary'' or rather wouldn''t work without it. If you''re going to be doing bit ''twiddling'', for example writing your own ieee754 floating point implementation then ''C'' is the traditional language of choice but these days C++ is a better option in my opinion or of course there is always assembler.
The advantage C or C++ give you over BASIC or Python or even Pascal is that you can control precisely the layout of data in memory, down to the physical memory addresses at which data is stored. This is why C is used for system programming, like writing operating systems and hardware device drivers where there is nothing to manage memory for you or prevent your program from overwriting itself or where exact numbers of bits and bytes in precisely the right place are critical.


这篇关于如果我们要使用二进制文件,哪种编程语言更熟悉?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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