编程语言-什么是高级语言?
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/03a34a23d0cc4e019e6dcdb4d694a74a~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723892161&x-signature=AD9T6aR4kniYElrVyWxpGKIiISA%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">‘</span><span style="color: black;">高级编程语言</span><span style="color: black;">’其实<span style="color: black;">亦</span>是一个相对的概念(相<span style="color: black;">针对</span>低级语言),他俩的语言特性是相互衬托的。</span></span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/24f4695b0a194f509fd1f9f966170e7c~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723892161&x-signature=I02nOJuHJfHKcKuI6uFEY7LqXE8%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">在上一篇<span style="color: black;">文案</span> 编程语言-什么是低级语言? <span style="color: black;">中间商</span>绍了低级语言的种类及其特性,低级语言的一个很<span style="color: black;">显著</span>的特征<span style="color: black;">便是</span>:执行效率高,编写麻烦(对程序员不友好),<span style="color: black;">那样</span>高级语言自然而然就要取其精华,罢黜糟粕,说人话<span style="color: black;">便是</span>使人们容易的对<span style="color: black;">设备</span>发出干活指令,此时的<span style="color: black;">目的</span>就确定了:实现下图中执行过程</span></span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/b4ebc7db5023451ba0291bcb838df2e5~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723892161&x-signature=g7Qa69QaP0wAGa7wmjyoy4S4Pk4%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">然而<span style="color: black;">以上</span><span style="color: black;">目的</span>在很早之前就<span style="color: black;">已然</span>实现了,像<span style="color: black;">日前</span>比较<span style="color: black;">平常</span>的C、C++、Java、Python.....这几种高级语言实现思维上各有其<span style="color: black;">特殊</span>,简单的说下</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">C++</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">C++实现<span style="color: black;">以上</span>的<span style="color: black;">目的</span>方式是有一套自己的编译器,编译器<span style="color: black;">便是</span>将“高级语言”翻译为“<span style="color: black;">设备</span>语言(低级语言)”的程序。简要地<span style="color: black;">便是</span></span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">源代码</span><span style="color: black;"> ---- </span><span style="color: black;">编译器</span><span style="color: black;"> ---- </span><span style="color: black;">汇编程序</span><span style="color: black;"> ---- </span><span style="color: black;">操作硬件</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">当然c++的编译器的这个程序<span style="color: black;">按照</span>实现的细节<span style="color: black;">区别</span>分为多种家族</span></span></p><span style="color: black;"><span style="color: black;">GCC家族(Cygwin、Mingw32、DJGPP...)</span></span><span style="color: black;"><span style="color: black;">MS家族(MSC、MSQC、MSVC...)</span></span><span style="color: black;"><span style="color: black;">Borland家族(TC、BC、BCB...</span></span>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">c++输出:This is a C++ program.</span></span></p><span style="color: black;">#<span style="color: black;">include</span> <span style="color: black;"><iostream></span></span>
<span style="color: black;">using</span> <span style="color: black;">namespace</span> <span style="color: black;">std</span>;
<span style="color: black;"><span style="color: black;">int</span> <span style="color: black;">main</span><span style="color: black;">()</span>
</span>{<span style="color: black;">cout</span><<<span style="color: black;">"This is a C++ program.\n"</span>;
getchar();
<span style="color: black;">return</span> <span style="color: black;">0</span>;
}<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/d8d979d02c834d7080557eb75c1c24f9~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723892161&x-signature=Ik1ZDApn1E3QQJWgBy7kxfNRRkc%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">Java</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">Java实现<span style="color: black;">以上</span>的<span style="color: black;">目的</span>方式是有JVM(</span><span style="color: black;">Java Virtual Machine</span><span style="color: black;">) 俗<span style="color: black;">叫作</span>Java虚拟机,JVMhi会将Java代码编译转化为符合JVM规范的.class文件(内部为16进制代码),<span style="color: black;">而后</span>JVM再将16进制代码传达给操作系统(大体<span style="color: black;">规律</span>是<span style="color: black;">这般</span>)。<span style="color: black;">相关</span>JVM的介绍请查阅 深入理解Java虚拟机 –阅读笔记(连载1) 无关性基石</span></span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/c0bd303c88f940f0ad8ddb58b8bdfbca~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723892161&x-signature=8xZpneXMjTFZqhe2s6s%2Ffsrvbk0%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">Python</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">Python实现<span style="color: black;">以上</span>的<span style="color: black;">目的</span>方式是有其强大的解释器(</span><span style="color: black;">Interpreter</span><span style="color: black;">),解释器能够把高级编程语言一行一行直接转译运行。</span></span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p6-sign.toutiaoimg.com/pgc-image/2cab4859815d418e955d892191f62970~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723892161&x-signature=oZqwzCkJRFSyFDBuGn0HfjJcWMg%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">对比:</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">c++:c++程序<span style="color: black;">必须</span>写完后再交给g++等编译器再去编译<span style="color: black;">而后</span>运行</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">Java:<span style="color: black;">一样</span>是要写完后让虚拟机去执行</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">(好比写完中文后再用翻译软件全文翻译后让他人读懂)</span></span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/f3bd8aa1143144079c655b8372faba5f~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723892161&x-signature=svrmGkQDSHIwAJBwjdwEPLIo4js%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">Python:即时解释(编译),效率相比上面两个要高<span style="color: black;">非常多</span>,就相当于身边有个翻译官,你说的每句话都实时地翻译成其他语言,同声传译。</span></span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/e1552280830c4d23bd29b97e782f36fd~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1723892161&x-signature=vxblohsjN40vxNGOzJwlmHS8i4I%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">高级编程语言让<span style="color: black;">运用</span>者<span style="color: black;">更加多</span>的关注程序本身,而不必去刻意关心操作硬件指令的<span style="color: black;">设备</span>码(易编写、<span style="color: black;">守护</span>),这<span style="color: black;">亦</span>是高级语言之<span style="color: black;">因此</span>能发展到今天的不败特性。</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;"><span style="color: black;">更加多</span>精彩内容请关注 公众号:</span><strong style="color: blue;"><span style="color: black;">数据与编程之美</span></strong></span></p>
回顾过去一年,是艰难的一年;展望未来,是辉煌的一年。 期待楼主的下一次分享!” 系统提示我验证码错误1500次 \~゛,
页:
[1]