contributed by <SarahCheng
>
sarah
,2016q3_hw3
看不太懂: This complicates the compiler somewhat, because it is doing something that a superscalar processor normally does at runtime, however the extra code in the compiler is minimal and it saves precious resources on the processor chip.
In reality, most processors actually use two bits, so that a single not-taken occurrence doesn't reverse a generally taken prediction (important for loop back edges).
*The most advanced modern processors often implement several branch predictors
reordering in hardware at runtime:OOO( software need not be recompiled)
complex logic to the processor,harder to design, larger chip area, power-hungry
rearranging the instructions :compiler (multiple paths)
means more cores, or extra cache, could be placed onto the same amount of chip area
參照 LanKuDot學長的實作
—g加在makefile的OBJS和sort 沒有用…
git checkout -b testbysarah
git push -u origin testbysarah
$ uniq words.txt | sort -R > input.txt
argc 是argument count(參數總和)的縮寫,代表包括指令本身的參數個數。系統會自動計算所輸入的參數個數。
argv 則是argument value 的縮寫。代表參數值。
也就是使用者在命令列中輸入的字串,每個字串以空白相隔。
同時,系統會自動將程式本身的名稱指定給argv[0] ,再將程式名稱後面所接續的參數依序指定給argv[1]
git clone https://github.com/doxygen/doxygen.git
cd doxygen
mkdir build
cd build
cmake -G "Unix Makefiles" .
Configuring incomplete, errors occurred!
(待解)
make
`Configuring incomplete, errors occurred!
format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Werror=format=
# if __WORDSIZE == 64
typedef long int int64_t;
# else
__extension__
typedef long long int int64_t;
# endif
both 32-bit compile with GCC (and with 32- and 64-bit MSVC), the output of the program will be:
int: 0
int64_t: 1
long int: 0
long long int: 1
*可能是os灌不對 uname -a
Linux sarahcheng-MacBookPro 4.4.0-38-generic #57-Ubuntu SMP Tue Sep 6 15:41:41 UTC 2016 i686 i686 i686 GNU/Linux
Cannot open the file
not input.txt, just input
input unsorted data line-by-line
x range not ....
redeclaration of ‘fp’ with no linkage
Segmentation fault (core dumped)
程式記憶體區段錯誤
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing