[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-692928-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-692928-en":130,"doc-similar-692928":274},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","the-microarchitecture-of-intel-amd-and-via-cpus-an-optimization-guide-for-assembly-programmers-and-compiler-makers","The microarchitecture of Intel, AMD, and VIA CPUs - An optimization guide for assembly programmers and compiler makers","","Optimization guide focused on microarchitecture details across Intel, AMD, and VIA CPUs, designed for assembly programmers and compiler makers. Covers out-of-order execution mechanisms including instruction splitting into micro-ops and register renaming, then explains branch prediction strategies for multiple processor generations. Also addresses pipeline behavior such as Pentium 1/MMX and NetBurst Pentium 4 features, including decoding, caching, scheduling, retirement, hazards, and instruction selection. Provides a structured contents overview for implementation-relevant tuning.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/the-microarchitecture-of-intel-amd-and-via-cpus-an-optimization-guide-for-assembly-programmers-and-compiler-makers/692928/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/the-microarchitecture-of-intel-amd-and-via-cpus-an-optimization-guide-for-assembly-programmers-and-compiler-makers/692928.png","ImageObject",300,407,{"name":42,"@type":43},"Mary Man","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-24","2026-11-09",true,{"@type":52,"interactionType":53,"userInteractionCount":33},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"Who is the guide intended for?","Question",{"text":62,"@type":63},"The guide is written for assembly programmers and compiler makers who need microarchitecture-aware optimization.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"What core topics are covered about modern execution behavior?",{"text":67,"@type":63},"It covers out-of-order execution, including how instructions are split into µops and how register renaming works.",{"name":69,"@type":60,"acceptedAnswer":70},"Which aspects of branch prediction does the guide analyze?",{"text":71,"@type":63},"It explains prediction methods for conditional jumps and discusses branch prediction across multiple Intel, AMD, and VIA processor families and generations, including indirect jumps and returns on supported models.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},692928,1794243025,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,105,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":102,"show_sort_weight":103,"slug":104},6,"Technology",50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":112,"slug":113},8,30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":111,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":33,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":79,"read_time":144,"preview_page_count":145,"preview_urls":146},7421720224475,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","3.  \nThe microarchitecture of Intel, AMD, and  \nVIA CPUs  \nAn optimization guide for assembly programmers and  \ncompiler makers  \nBy Agner Fog  \nCopyright © 1996-2026. Last updated 2026-05-23.  \nContents  \n1 Introduction ....................................................................................................................... 7  \n1.1 About this manual ....................................................................................................... 7  \n1.2 Microprocessor versions covered by this manual ........................................................ 9  \n2 Out-of-order execution (All processors except P1, PMMX) .............................................. 11  \n2.1 Instructions are split into µops................................................................................... 11  \n2.2 Register renaming .................................................................................................... 12  \n3 Branch prediction (all processors) ................................................................................... 14  \n3.1 Prediction methods for conditional jumps .................................................................. 14  \n3.2 Branch prediction in P1 ............................................................................................. 20  \n3.3 Branch prediction in PMMX, PPro, P2, and P3 ......................................................... 23  \n3.4 Branch prediction in P4 and P4E .............................................................................. 25  \n3.5 Branch prediction in PM and Core2 .......................................................................... 27  \n3.6 Branch prediction in Intel Nehalem ........................................................................... 29  \n3.7 Branch prediction in Intel Sandy Bridge and Ivy Bridge ............................................. 30  \n3.8 Branch prediction in Intel Haswell, Broadwell, Skylake, and other Lakes .................. 31  \n3.9 Branch prediction in Intel Atom, Silvermont, Goldmont, and Knights Landing ........... 32  \n3.10 Branch prediction in VIA Nano ................................................................................ 32  \n3.11 Branch prediction in AMD K8 and K10 .................................................................... 33  \n3.12 Branch prediction in AMD Bulldozer, Piledriver, Steamroller, and Excavator........... 36  \n3.13 Branch prediction in AMD Zen ................................................................................ 36  \n3.14 Branch prediction in AMD Bobcat and Jaguar......................................................... 37  \n3.15 Indirect jumps on older processors ......................................................................... 38  \n3.16 Returns (all processors except P1) ......................................................................... 38  \n3.17 Static prediction ...................................................................................................... 39  \n3.18 Close jumps ............................................................................................................ 40  \n4 Intel Pentium 1 and Pentium MMX pipeline ..................................................................... 42  \n4.1 Pairing integer instructions ........................................................................................ 42  \n4.2 Address generation interlock..................................................................................... 46  \n4.3 Splitting complex instructions into simpler ones ........................................................ 46  \n4.4 Prefixes..................................................................................................................... 47  \n4.5 Scheduling floating point code .................................................................................. 48  \n5 Intel Pentium 4 (NetBurst) pipeline ................................................................","cbCaiaVD2f0geHlG","https://ap.wps.com/l/cbCaiaVD2f0geHlG","pdf",1866514,278,"English","# Introduction\n## About this manual\n## Microprocessor versions covered by this manual\n# Out-of-order execution\n## Instructions are split into µops\n## Register renaming\n# Branch prediction\n## Prediction methods for conditional jumps\n## Branch prediction in P1\n## Branch prediction in other processor generations\n# Intel Pentium 1 and Pentium MMX pipeline\n## Pairing integer instructions\n## Address generation interlock\n## Scheduling floating point code\n# Intel Pentium 4 (NetBurst) pipeline\n## Data cache\n## Trace cache\n## Instruction decoding\n## Execution units\n## Retirement\n## Memory and dependency behavior","[{\"question\":\"Who is the guide intended for?\",\"answer\":\"The guide is written for assembly programmers and compiler makers who need microarchitecture-aware optimization.\"},{\"question\":\"What core topics are covered about modern execution behavior?\",\"answer\":\"It covers out-of-order execution, including how instructions are split into µops and how register renaming works.\"},{\"question\":\"Which aspects of branch prediction does the guide analyze?\",\"answer\":\"It explains prediction methods for conditional jumps and discusses branch prediction across multiple Intel, AMD, and VIA processor families and generations, including indirect jumps and returns on supported models.\"}]","The microarchitecture of Intel, AMD, and VIA CPUs - An optimization guide for assembly programmers and compiler makers | PDF",701,28,[147,151,155,159,163,167,171,175,179,183,187,192,197,202,207,212,217,222,227,231,235,240,245,250,255,260,265,270],{"page_no":22,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/847d512cfb2956bb9311709e41b78c2d.webp",983,1390,{"page_no":26,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/16b9636bff5803750c0e0d565d37a340.webp",982,1388,{"page_no":30,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/9e1249d5703e9d0d8f247bef0bf4f0cc.webp",981,1387,{"page_no":33,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/6048b302cd1801c9d533845946bd4e99.webp",980,1385,{"page_no":96,"url":164,"width":165,"height":166},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/7ead2bf2de76a577db6fa5cb34ea6608.webp",979,1384,{"page_no":101,"url":168,"width":169,"height":170},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/07b1b0cd566d41f3ee3b35db3a748903.webp",978,1383,{"page_no":106,"url":172,"width":173,"height":174},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/d196a1d52f1ef4fedfb33a12c5d63fef.webp",977,1381,{"page_no":111,"url":176,"width":177,"height":178},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/3687c0070b34bd22b4e313ba99e549e7.webp",976,1380,{"page_no":115,"url":180,"width":181,"height":182},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/35be7782ae75cb3114bff96082dd0262.webp",975,1378,{"page_no":123,"url":184,"width":185,"height":186},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/fe69bf0bd1ecf631d4c7772d19e8dad4.webp",974,1377,{"page_no":188,"url":189,"width":190,"height":191},11,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/00557cd4567efb35f7f782f20cdbff5b.webp",973,1375,{"page_no":193,"url":194,"width":195,"height":196},12,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/2d6513c6a0dc563c2edbc3f04213ab05.webp",972,1374,{"page_no":198,"url":199,"width":200,"height":201},13,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/790f1b3c7cd9233bb697fbe6a6147894.webp",971,1373,{"page_no":203,"url":204,"width":205,"height":206},14,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/606879cdf6234f92498265de490a99e4.webp",970,1371,{"page_no":208,"url":209,"width":210,"height":211},15,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/c8095f78507504e04864405f2ae80b40.webp",969,1370,{"page_no":213,"url":214,"width":215,"height":216},16,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/5cab1ed5e4a8e8e93943d89e58f52e2f.webp",968,1368,{"page_no":218,"url":219,"width":220,"height":221},17,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/b2911541fe5f7bcae604b145fe7d43e5.webp",967,1367,{"page_no":223,"url":224,"width":225,"height":226},18,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/a9212b1ad29679dcb989407d6cbeb9b8.webp",966,1366,{"page_no":127,"url":228,"width":229,"height":230},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/8f18e33bee9b5ea958293be1cd1ca2f0.webp",965,1364,{"page_no":117,"url":232,"width":233,"height":234},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/9483d2c56108cd84cb972294a5ab0f41.webp",964,1363,{"page_no":236,"url":237,"width":238,"height":239},21,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/74deb0b9f10f97d8694b7fdab11de93f.webp",963,1361,{"page_no":241,"url":242,"width":243,"height":244},22,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/db93566337cdb9b0d2a7adce0c8b8573.webp",962,1360,{"page_no":246,"url":247,"width":248,"height":249},23,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/ad412321075b4968daccb8cec88e2d46.webp",961,1358,{"page_no":251,"url":252,"width":253,"height":254},24,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/12cc2187166dd57755fdcce01a2f0b87.webp",960,1357,{"page_no":256,"url":257,"width":258,"height":259},25,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/6789d05009ba69189d69bba5af00580c.webp",959,1356,{"page_no":261,"url":262,"width":263,"height":264},26,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/758d1f16e197ce6c187a7564aeb79ac9.webp",958,1354,{"page_no":266,"url":267,"width":268,"height":269},27,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/e25243ccca76114ad2f25fbf7e498b3d.webp",957,1353,{"page_no":145,"url":271,"width":272,"height":273},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/f0c1edcf60ff36786b2d868c240b2e27.webp",956,1351,{"list":275,"token":11},[276,282,288,294,300,307,314,321,328,335],{"doc_id":277,"doc_title":278,"file_type":137,"home_preview_img_url":279,"slug":280,"view_count":123,"category_name":29,"create_tm":281},443367,"INTEL TO OFFER NO CHARGE HOME PC PROGRAMS FOR EMPLOYEES WORLDWIDE - Vol.41 No.10","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229924639384/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796188019&Signature=1Qzm7XdmXuOY112WPZGE9iG%2B4HU%3D","intel-to-offer-no-charge-home-pc-programs-for-employees-worldwide-vol41-no10",1790703800,{"doc_id":283,"doc_title":284,"file_type":137,"home_preview_img_url":285,"slug":286,"view_count":198,"category_name":29,"create_tm":287},653972,"M938 Series - V3.1 - Documentation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229973628714/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796188019&Signature=7VJCg45m2Ne43O3Vt0pkV06UwjY%3D","m938-series-v31-documentation",1792904273,{"doc_id":289,"doc_title":290,"file_type":137,"home_preview_img_url":291,"slug":292,"view_count":96,"category_name":29,"create_tm":293},700438,"CCFC3007PT Microcontroller - Data Sheet - Rev. 1.4","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012025679/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796188019&Signature=Q0Fx%2Fj%2Fu9upRh5lmDCQ4u2In%2Bgk%3D","ccfc3007pt-microcontroller-data-sheet-rev-14",1794518742,{"doc_id":295,"doc_title":296,"file_type":137,"home_preview_img_url":297,"slug":298,"view_count":266,"category_name":29,"create_tm":299},81999,"Vectorizing Quantum Control: A RISC-V Vector Extension Architecture for Scalable Qubit Systems","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808659245/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796188019&Signature=uKFI%2BBvv1XGN1GoqnXgtiDxumck%3D","vectorizing-quantum-control-a-risc-v-vector-extension-architecture-for-scalable-qubit-systems",1784177489,{"doc_id":301,"doc_title":302,"file_type":137,"home_preview_img_url":303,"slug":304,"view_count":305,"category_name":29,"create_tm":306},234,"XNX Gas Detector Calibration Guide 2023","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693727733/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796188019&Signature=rf9Vv8EGmvKj4y%2FD%2BCJzGF9Sx34%3D","xnx-gas-detector-calibration-2023",7951,1776136863,{"doc_id":308,"doc_title":309,"file_type":137,"home_preview_img_url":310,"slug":311,"view_count":312,"category_name":29,"create_tm":313},227,"Sridevi Matka Chart Full Guide to Panel, Jodi & Pana Records","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693727553/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796188019&Signature=6tjn9fQC4UWWnYjsBrxQYoMKWIM%3D","sridevi-matka-chart-full-guide-to-panel-jodi-pana-records",6976,1776136851,{"doc_id":315,"doc_title":316,"file_type":137,"home_preview_img_url":317,"slug":318,"view_count":319,"category_name":29,"create_tm":320},167314,"Linear Algebra and Its Applications 6th edition Textbook by david c. lay","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229876163444/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796188019&Signature=x8kQyq0yNwwMjKVRx7l05Tz3%2BCM%3D","linear-algebra-and-its-applications-sixth-edition-david-c-lay-steven-r-lay-judi-j-mcdonald",5921,1788211707,{"doc_id":322,"doc_title":323,"file_type":137,"home_preview_img_url":324,"slug":325,"view_count":326,"category_name":29,"create_tm":327},32070,"Blueprint Pengelolaan Sumber Daya Manusia Kesehatan (SDMK) Tahun 2025–2029","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229758685683/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796188019&Signature=aMWxWygUhw5fDlkoojSvjeiYB98%3D","healthcare-human-resources-management-blueprint-sdmk-20252029",1294,1780779716,{"doc_id":329,"doc_title":330,"file_type":137,"home_preview_img_url":331,"slug":332,"view_count":333,"category_name":29,"create_tm":334},148514,"Developmental Biology - Twelfth Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229868853261/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796188019&Signature=QbTl6E3NA4yn4nfnxBWbsgEoTuc%3D","developmental-biology-twelfth-edition",1260,1787780705,{"doc_id":336,"doc_title":337,"file_type":137,"home_preview_img_url":338,"slug":339,"view_count":340,"category_name":29,"create_tm":341},121,"Letter of Intent Sample for School","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693418846/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796188019&Signature=rbBJNIhG0iATK3pVmtwz2uEaS4A%3D","letter-of-intent-sample-for-school",1059,1776135210]