Knowing how the underlying hardware works helps explain a concept that translation - Knowing how the underlying hardware works helps explain a concept that Thai how to say

Knowing how the underlying hardware

Knowing how the underlying hardware works helps explain a concept that programmers
encounter: byte alignment. We say that an integer value is aligned if the
bytes of the integer correspond to a word in the underlying physical memory. In Figure
10.7, for example, an integer composed of bytes 12, 13, 14, and 15 is aligned, but an integer
composed of bytes 6, 7, 8, and 9 is not.
On some architectures, byte alignment is required — the processor raises an error
if a program attempts an integer access using an unaligned address. On other processors,
arbitrary alignment is allowed, but unaligned accesses result in lower performance
than aligned accesses. We can now understand why an unaligned address requires more
accesses of physical memory: the memory controller must convert each processor request
into operations on the underlying memory. If an integer spans two words, the
controller must perform two read operations to obtain the requested bytes. Thus, even
if the processor permits unaligned access, programmers are strongly encouraged to align
data values.
We can summarize:
The organization of physical memory affects programming: even if a
processor allows unaligned memory access, aligning data on boundaries
that correspond to the physical word size can improve program
performance.
0/5000
From: -
To: -
Results (Thai) 1: [Copy]
Copied!
รู้วิธีการทำงานของฮาร์ดแวร์พื้นฐานช่วยอธิบายแนวคิดที่โปรแกรมเมอร์พบ: ตำแหน่งไบต์ เราบอกว่า ค่าเต็มชิดถ้าการไบต์ของจำนวนเต็มสอดคล้องกับคำในหน่วยความจำกายภาพอยู่ภายใต้ ในรูปที่10.7 ตัวอย่าง จำนวนเต็มประกอบด้วยไบต์ 12, 13, 14 และ 15 คือชิด แต่เป็นเลขจำนวนเต็มประกอบด้วยไบต์ 6, 7, 8 และ 9 ไม่ได้ในบางสถาปัตยกรรม ตำแหน่งไบต์จำเป็น — ตัวประมวลผลเพิ่มข้อผิดพลาดถ้าโปรแกรมพยายามเข้าถึงจำนวนเต็มใช้อยู่ไม่ บนโปรเซสเซอร์อื่น ๆกำหนดตำแหน่งได้ แต่ไม่หาผลในประสิทธิภาพต่ำกว่าหาจัดตำแหน่ง เราสามารถเข้าใจตอนนี้ทำไมอยู่ไม่ต้องเพิ่มเติมหาหน่วยความจำทางกายภาพ: ตัวควบคุมหน่วยความจำต้องแปลงแต่ละตัวประมวลผลคำเป็นการดำเนินงานในหน่วยความจำแบบ ถ้าสองคำ ครอบคลุมเป็นจำนวนเต็มควบคุมต้องทำการดำเนินการอ่านสองรับไบต์ที่ร้องขอ ดังนั้น แม้แต่ถ้าตัวประมวลผลที่อนุญาตให้เข้าถึงไม่ โปรแกรมเมอร์จะขอรับการสนับสนุนการจัดค่าข้อมูลเราสามารถสรุป:องค์กรของหน่วยความจำทางกายภาพมีผลต่อการเขียนโปรแกรม: หากเป็นตัวประมวลผลทำให้หน่วยความจำไม่เข้า จัดเรียงข้อมูลในขอบเขตที่สอดคล้องกับทางกายภาพคำขนาดสามารถปรับปรุงโปรแกรมประสิทธิภาพของ
Being translated, please wait..
Results (Thai) 2:[Copy]
Copied!
รู้วิธีการทำงานของฮาร์ดแวร์พื้นฐานที่ช่วยอธิบายแนวคิดที่โปรแกรมเมอร์
พบ: การจัดตำแหน่งไบต์ เรากล่าวว่าค่าจำนวนเต็มสอดคล้องถ้า
ไบต์ของจำนวนเต็มตรงกับคำในหน่วยความจำพื้นฐานทางกายภาพ ในรูปที่
10.7 เช่นจำนวนเต็มประกอบด้วยไบต์ 12, 13, 14, และ 15 จะสอดคล้อง แต่จำนวนเต็ม
ประกอบด้วยไบต์ 6, 7, 8 และ 9 ไม่ได้.
ในสถาปัตยกรรมบางแนวร่วมไบต์จำเป็นต้องมี - หน่วยประมวลผลที่ทำให้เกิดข้อผิดพลาด
ถ้าโปรแกรมพยายามเข้าถึงจำนวนเต็มโดยใช้ที่อยู่ unaligned บนตัวประมวลผลอื่น ๆ ที่
จัดโดยพลการที่ได้รับอนุญาต แต่เข้าถึง unaligned ทำให้ประสิทธิภาพการทำงานลดลง
กว่าการเข้าถึงชิด ตอนนี้เราสามารถเข้าใจว่าทำไมอยู่ unaligned ต้องมี
การเข้าถึงหน่วยความจำกายภาพ: ควบคุมหน่วยความจำต้องแปลงแต่ละคำขอประมวลผล
ในการดำเนินงานในหน่วยความจำพื้นฐาน ถ้าจำนวนเต็มช่วงสองคำ
ควบคุมต้องดำเนินการทั้งสองดำเนินการอ่านที่จะได้รับการร้องขอไบต์ ดังนั้นแม้
หากอนุญาตให้ประมวลผลการเข้าถึง unaligned โปรแกรมเมอร์ควรอย่างยิ่งที่จะจัด
. ค่าข้อมูล
เราสามารถสรุป:
องค์กรของหน่วยความจำกายภาพมีผลต่อการเขียนโปรแกรม: แม้ว่า
หน่วยประมวลผลที่ช่วยให้สามารถเข้าถึงหน่วยความจำ unaligned เรียงข้อมูลในขอบเขต
ที่สอดคล้องกับคำกายภาพ ขนาดสามารถปรับปรุงโปรแกรม
ประสิทธิภาพ
Being translated, please wait..
Results (Thai) 3:[Copy]
Copied!
รู้จักฮาร์ดแวร์พื้นฐานงานช่วยอธิบายแนวคิดที่โปรแกรมเมอร์
พบ : แนวไบต์ เรากล่าวว่าจำนวนเต็มค่าสอดคล้องถ้า
ไบต์ของจำนวนเต็มที่สอดคล้องกับคำพื้นฐานทางกายภาพหน่วยความจำ ในรูป
10.7 , ตัวอย่างเช่น , จำนวนเต็ม จำนวนไบต์ที่ 12 , 13 , 14 และ 15 สอดคล้อง แต่จำนวนเต็ม
จำนวนไบต์ที่ 6 , 7 , 8 และ 9
.บนสถาปัตยกรรมแนวไบต์เป็นสิ่งจำเป็น - หน่วยประมวลผลหัสข้อผิดพลาด
ถ้าโปรแกรมพยายามเข้าถึงการใช้จำนวนเต็มที่อยู่ unaligned . บนโปรเซสเซอร์อื่น ๆ ,
พลจัดได้ แต่ unaligned เข้าถึงผลการปฏิบัติงานต่ำกว่า
ชิดเข้า . ตอนนี้เราสามารถเข้าใจเหตุผลที่อยู่ unaligned ต้องการมากกว่า
เข้าถึงหน่วยความจำกายภาพ :หน่วยความจำควบคุมต้องแปลงแต่ละประมวลผลการร้องขอ
ในการดําเนินงานบนพื้นฐานของหน่วยความจำ ถ้าจำนวนเต็มครอบคลุมสองคำ ผู้ควบคุมต้องดำเนินการสองอ่าน
ปฏิบัติการได้รับร้องขอไบต์ ดังนั้น แม้
ถ้าตัวประมวลผลใบอนุญาตการเข้าถึง unaligned โปรแกรมเมอร์จะขอสนับสนุนให้มีการจัดข้อมูลค่า
.
เราสามารถสรุป :
องค์กรของหน่วยความจำกายภาพที่มีผลต่อโปรแกรม :แม้ว่า
โปรเซสเซอร์ช่วยให้เข้าถึงหน่วยความจำ unaligned สอดคล้องกับข้อมูลบนขอบเขต
ที่สอดคล้องกับคำทางกายภาพขนาดสามารถปรับปรุงประสิทธิภาพของโปรแกรม

Being translated, please wait..
 
Other languages
The translation tool support: Afrikaans, Albanian, Amharic, Arabic, Armenian, Azerbaijani, Basque, Belarusian, Bengali, Bosnian, Bulgarian, Catalan, Cebuano, Chichewa, Chinese, Chinese Traditional, Corsican, Croatian, Czech, Danish, Detect language, Dutch, English, Esperanto, Estonian, Filipino, Finnish, French, Frisian, Galician, Georgian, German, Greek, Gujarati, Haitian Creole, Hausa, Hawaiian, Hebrew, Hindi, Hmong, Hungarian, Icelandic, Igbo, Indonesian, Irish, Italian, Japanese, Javanese, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Korean, Kurdish (Kurmanji), Kyrgyz, Lao, Latin, Latvian, Lithuanian, Luxembourgish, Macedonian, Malagasy, Malay, Malayalam, Maltese, Maori, Marathi, Mongolian, Myanmar (Burmese), Nepali, Norwegian, Odia (Oriya), Pashto, Persian, Polish, Portuguese, Punjabi, Romanian, Russian, Samoan, Scots Gaelic, Serbian, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenian, Somali, Spanish, Sundanese, Swahili, Swedish, Tajik, Tamil, Tatar, Telugu, Thai, Turkish, Turkmen, Ukrainian, Urdu, Uyghur, Uzbek, Vietnamese, Welsh, Xhosa, Yiddish, Yoruba, Zulu, Language translation.

Copyright ©2024 I Love Translation. All reserved.

E-mail: