[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-732869-105":59,"doc-detail-732869-en":130,"doc-similar-732869":161},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","levels-of-programming-languages-lecture-2","Levels of Programming Languages - Lecture 2","","Lecture material explains how programming languages can be viewed as layered levels, from microcode and machine code up through assembly, low-level, and high-level languages. It describes what microcode does inside a CPU’s data-path, why machine code depends on architecture while assembly uses symbolic representations, and how high-level languages offer type checking, easier debugging, and hardware abstraction. The lecture also covers compilation by mapping higher-level programs to equivalent lower-level or native machine code, including key advantages and debugging disadvantages.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/levels-of-programming-languages-lecture-2/732869/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/levels-of-programming-languages-lecture-2/732869.png","ImageObject",300,407,{"name":92,"@type":93},"Jasmine","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-27","2026-11-22",true,{"@type":102,"interactionType":103,"userInteractionCount":19},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is microcode, and how does it relate to the CPU data-path?","Question",{"text":112,"@type":113},"Microcode is machine-specific code that directs components of the CPU’s data-path (such as the ALU and its inputs/outputs) to perform small-scale operations. Machine code instructions cause the CPU to execute microprograms written in micro-code.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How are machine code and assembly language connected?",{"text":117,"@type":113},"Machine code instructions still depend on the computer’s architecture, though variations can be limited across similar CPUs. Assembly language presents machine code symbolically so humans can read and write programs, typically with assemblers that support labels and macros.",{"name":119,"@type":110,"acceptedAnswer":120},"Why do high-level languages often sacrifice efficiency, and what benefits do they provide?",{"text":121,"@type":113},"High-level languages are far removed from the specific computer they run on, so they typically aren’t as efficient and may have implementation dependence. They provide conveniences like type checking, easier debugging, and reducing the need to manually handle memory addresses.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},732869,1795382636,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":19,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":19,"preview_urls":145},2336478487870,"https://ap-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","Levels of Programming Languages  \nGerald Penn CSC 324  \nLevels of Programming Language  \n• Microcode  \n• Machine code  \n• Assembly Language  \n• Low-level Programming Language  \n• High-level Programming Language  \nLevels of Programming Language  \n• Microcode  \n– Machine-specific code that directs the individual components of a CPU’s data-path to perform small-scale operations.  \n– CPU: central processing unit of a computer, typically consisting of:  \n• Control unit  \n• Arithmetic/logical unit (ALU)  \n• Registers – high-speed memory locations to store temporary results and control information. Foremost among these is the program counter, which points to the next instruction to be executed.  \n– The CPU is connected to I/O devices and main memory by parallel channels called buses.  \nLevels of Programming Language  \n• Microcode  \n– Machine-specific code that directs the individual components of a CPU’s data-path to perform small-scale operations.  \n– Data-path: the ALU, its inputs and outputs.  \n– People who build computers program in micro-code. The programs that you write are converted (as explained later) into machine code.  \n– Every machine code instruction tells the CPU to execute a certain microprogram, written in micro-code.  \n– Often these programs are implemented in hardware.  \n– On the other hand, some microprocessors are:  \n• programmable, e.g., many digital signal processing chips that mobile telephones use, FPGAs, or  \n• reconfigurable – they can actually rewire themselves.  \nLevels of Programming Language  \n• Machine code / Assembly Language  \n– Machine code instructions still depend on the computer’s architecture, but the variation isn’t as great; many CPUs manufactured around the same time or by the same company will use the same machine code sets, in fact.  \n– Assembly language is a symbolic presentation of machine code so that people (very dedicated people with lots of free time) can read programs written in it.  \n– Most assemblers (programs that convert assembly code to machine code) support labelling and macros to make assembly language programming easier.  \n– Some recent assemblers support looping control structures, simple data structures and even types!  \n\n| Address | Label | Instruction | Object Code |\n| --- | --- | --- | --- |\n|  |  | .begin |  |\n|  |  | .org 2048 |  |\n|  | a_start | .equ 3000 |  |\n| 2048 |  | ld length,% |  |\n| 2064 |  | be done | 00000010 100… |\n| 2068 |  | addcc %r1, -4,%r1 | 10000010 100… |\n| 2072 |  | addcc\u003Cbr>%41,%r2,%r4 | 10001000 100… |\n| 2076 |  | ld %r4,%r5 | 11001010 000… |\n| 2080 |  | ba loop | 00010000 101… |\n| 2084 |  | addcc\u003Cbr>%r3,%r5,%r3 | 10000110 100… |\n| 2088 | done: | jmpl %r15+4,%r0 | 10000001 110… |\n| 2092 | length: | 20 | 00000000 000… |\n| 2096 | address: | a_start |  |\n|  |  | .org a_start |  |\n| 3000 | a: |  |  |\n\nLevels of Programming Language  \n• Low-level Programming Language  \n– Formerly known as high-level programming languages. 􀀭  \n– e.g.: FORTRAN, COBOL, BASIC, arguably C  \n– These languages have looping constructs, procedures, functions, some typing – the trappings of modern programming languages.  \n– Big improvement over assembly language.  \nLevels of Programming Language  \n• High-level Programming Language  \n– e.g.: Java, Python, ML, Prolog, MATLAB, etc.  \n– These are very convenient, but also very far removed from the computer they are running on.  \n• Type checking  \n• Easier to debug  \n• You may never even see a memory address.  \n– As a result, they typically aren’t as efficient.  \n– They still may not be portable: implementation dependence. Java has had some problems with this.  \nCompilation  \n• A compiler is a program that converts a program written at one of the higher levels into an equivalent program at some lower level.  \n– Some people have even tried to use C as a target language for Java, ML or Prolog compilers.  \n– Not always the next level down, though.  \n– Native code compilers compile the code all the way down into the machine code level.  \n","cbCaingKNS1Yxo68","https://ap.wps.com/l/cbCaingKNS1Yxo68","pdf",333711,14,"English","# Microcode\n## Microcode and CPU structure\n# Machine Code and Assembly Language\n## Assembly as symbolic machine code\n# Low-level Programming Language\n# High-level Programming Language\n## Type checking and debugging\n# Compilation\n## Advantages and disadvantages","[{\"question\":\"What is microcode, and how does it relate to the CPU data-path?\",\"answer\":\"Microcode is machine-specific code that directs components of the CPU’s data-path (such as the ALU and its inputs/outputs) to perform small-scale operations. Machine code instructions cause the CPU to execute microprograms written in micro-code.\"},{\"question\":\"How are machine code and assembly language connected?\",\"answer\":\"Machine code instructions still depend on the computer’s architecture, though variations can be limited across similar CPUs. Assembly language presents machine code symbolically so humans can read and write programs, typically with assemblers that support labels and macros.\"},{\"question\":\"Why do high-level languages often sacrifice efficiency, and what benefits do they provide?\",\"answer\":\"High-level languages are far removed from the specific computer they run on, so they typically aren’t as efficient and may have implementation dependence. They provide conveniences like type checking, easier debugging, and reducing the need to manually handle memory addresses.\"}]","Levels of Programming Languages - Lecture 2 | PDF",35,[146,150,153,157],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/694d0eacb0f86ef039a8c1d902d1ee7a.webp",983,736,{"page_no":14,"url":151,"width":152,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/fd80db3af45305171bf08854093e4ceb.webp",982,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/df5166230e3051ad91d109baa2f85fe4.webp",981,735,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/c1eea9f5b8842991ddba54527a01a337.webp",980,734,{"list":162,"token":66},[163,169,175,181,188,194,200,206,213,219],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":19,"category_name":30,"create_tm":168},685653,"Introduction to Programming Languages and Tools of the Trade - Lesson Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999685614/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=ZNDGQ%2BVYtWLa%2FMZAtk7XAl3vm60%3D","introduction-to-programming-languages-and-tools-of-the-trade-lesson-overview",1794016330,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":24,"category_name":30,"create_tm":174},685639,"Programming Languages and Applications - Course Topic - May 2022","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999084333/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=U8i3JOkyg3V3hvoJltjyNH9kxQg%3D","programming-languages-and-applications-course-topic-may-2022",1794016118,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":44,"category_name":30,"create_tm":180},412206,"Coding with Cups - Lesson Plan - Classroom activity for K-6 students","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229921472625/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=yGMcHu1ko23D4dsjuKHyb%2Bpm4Ow%3D","coding-with-cups-lesson-plan-classroom-activity-for-k-6-students",1790590850,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":186,"category_name":30,"create_tm":187},347395,"Programming In C - Part 1 - Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911021193/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=%2BSua9lANrt%2FrgU%2Fj4JnBxyWG0ic%3D","programming-in-c-part-1-introduction",31,1790066769,{"doc_id":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":81,"category_name":30,"create_tm":193},697913,"Introduction to Programming Languages - Objectives","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010130478/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=uuwoz2V6fJt822q7THmF7DRgIzk%3D","introduction-to-programming-languages-objectives",1794445808,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":19,"category_name":30,"create_tm":199},685638,"Programming Languages and C++ - Bloomberg Frankfurt March 19, 2019","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999084245/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=u4QdWEOotK0lhpkaPPtS9gsCx%2BI%3D","programming-languages-and-c-bloomberg-frankfurt-march-19-2019",1794016112,{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":19,"category_name":30,"create_tm":205},685654,"Concepts in Programming Languages - CST Paper 7 - 2019–2020","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000172828/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=3NIbfpuEwRV9Zfp8mUUVNG6I4%2BY%3D","concepts-in-programming-languages-cst-paper-7-20192020",1794016332,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":211,"category_name":30,"create_tm":212},416346,"APPENDIX C - GLOSSARY for COMPUTER SCIENCE STANDARDS - Appendix C Glossary","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922222663/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=xPtPr36mCehXdJZLTn6U0%2BXUDJs%3D","appendix-c-glossary-for-computer-science-standards-appendix-c-glossary",16,1790605129,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":211,"category_name":30,"create_tm":218},429039,"Vocabulary List for Computing Curriculum","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922821110/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=PGNy9VEgmqt5w38P2E6lI2lD1Uk%3D","vocabulary-list-for-computing-curriculum",1790648435,{"doc_id":220,"doc_title":221,"file_type":137,"home_preview_img_url":222,"slug":223,"view_count":8,"category_name":30,"create_tm":224},763092,"Selenium Full Material Updated Greens","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230045654967/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=jeED20PIr%2B1c9%2BlDK7nKSRbmjJo%3D","selenium-full-material-updated-greens",1795999623]