誰知道NVIDIA硬體應用工程師筆試考些什麼 - 工程師
By Frederic
at 2013-03-05T21:48
at 2013-03-05T21:48
Table of Contents
※ 引述《IgnoreSwing (舫穗)》之銘言:
: 3). 題目說明: ARM(?) 會自動對齊每個entries 「註」還有幾題都在考ARM記憶體相關
: _Packet struct
: {
: char a;
: int b;
: char c;
: short d;
: }
: 3a. 在記憶體配置情形(下面有個圖應該是要畫圖)
猜的
0x00 0x01 ... 0x04 0x05 0x06 0x07
[a ] [b ] [c ] [ d ]
查了一下,應該是 __packed
不過這算是 compiler 特有功能才對。
: 3b. 不用_Packet指令要怎麼宣告struct才能節省記憶體配置
改宣告順序
struct
{
char a;
char c;
short d;
int b;
}
--
Money can't buy happiness but it can buy performance
--
: 3). 題目說明: ARM(?) 會自動對齊每個entries 「註」還有幾題都在考ARM記憶體相關
: _Packet struct
: {
: char a;
: int b;
: char c;
: short d;
: }
: 3a. 在記憶體配置情形(下面有個圖應該是要畫圖)
猜的
0x00 0x01 ... 0x04 0x05 0x06 0x07
[a ] [b ] [c ] [ d ]
查了一下,應該是 __packed
不過這算是 compiler 特有功能才對。
: 3b. 不用_Packet指令要怎麼宣告struct才能節省記憶體配置
改宣告順序
struct
{
char a;
char c;
short d;
int b;
}
--
Money can't buy happiness but it can buy performance
--
Tags:
工程師
All Comments
By Sierra Rose
at 2013-03-07T13:57
at 2013-03-07T13:57
By Susan
at 2013-03-09T21:59
at 2013-03-09T21:59
By Jack
at 2013-03-13T17:23
at 2013-03-13T17:23
Related Posts
請問一下要選哪個
By Elizabeth
at 2013-03-05T19:29
at 2013-03-05T19:29
誰知道NVIDIA硬體應用工程師筆試考些什麼
By Madame
at 2013-03-05T18:52
at 2013-03-05T18:52
湖口的德州儀器TI
By Joe
at 2013-03-05T18:19
at 2013-03-05T18:19
洩蝴蝶機未上市照 工程師賠10萬獲不起訴
By Ivy
at 2013-03-05T18:04
at 2013-03-05T18:04
請問 思愛普 (SAP) CRM Consultant
By Kristin
at 2013-03-05T17:34
at 2013-03-05T17:34