Assembler Meetup #29, 2020/02/01 2020-02-02 2.7K Fixed all wrong testcases excepts ptwrite Only 87 wrong instructions are wrong encoding now
Assembler Meetup #28, 2020/01/25 2020-02-02 2.6K Nothing special, still doing the "jump/call label", i can get the information (line number & offset) i need
Assembler Meetup #20, 2019/11/09 2019-11-09 2.6K Kelvin and Jenny heading to encode b* and c* instructions Desmond keep going to PE format Peter try to add…
Assembler Dev #19 2019/11/02 2019-11-09 2.4K We think the encoding method is stable, asked Jenny to write a wiki, describe how we can encode each instruction…
Assembler dev meeting #13 2019-09-16 2.5K 2019/09/14, we met in cityu again. I finished IMM in other project https://gitlab.com/quantr/toolchain/antlr-calculator-library . So Assembler's parser will eat up…
ELF Specification 1.2 is only for 32 bits 2019-09-09 2.5K I am writing a java library to manipulate 64 bits ELF, so i read ELF specification 1.2 , but one…
Assembler dev meeting #11 2019-09-01 2.2K sync-ed up Jenny coding skill to all of us. Jenny now clearing all useless code, rename variables to a more…
Assembler dev meeting #10 2019-08-25 2.3K As usual, #10 meeting was hold in CityU. We getting more familiar with Intel basic instruction set translating. Here is…
Assembler Dev meeting #6, #7 and #8 2019-08-05 2.3K Desmond typed all basic instructions to grammar. We found some translation are wrong. I fixed the full test so can…
The 5th Assembler dev meeting 2019-07-12 2.2K Jenny has done SIB table, Kelvin is working on 66h 67h, Desmond is adding rest of the instructions. Thanks for…
x86 disassembler預研成功 2019-07-10 6.5K x86 disassemble預研成功,感謝Rod Pemberton朋友在alt.lang.asm上面的幫忙,原來Intel instruction雖然係CISC但可以在未decode所有Byte之前把Instruction切割出來。還有,切割比我想像人來得簡單。我現在的問題就是,RISC的所謂固定長度指令好像不是傳說中所說的巨大優勢。
4th Assembler dev meeting 2019-06-29 2.4K We heading into Antlr Grammar, got one problem : We don't know how anltr prioritise parse rules, so next week…
Assembler encoding test : 16-Bit Addressing Forms with the ModR/M Byte 2019-01-05 3.5K Code to test "16-Bit Addressing Forms with the ModR/M Byte" // String instruction = "adc byte [ si+0x12], 0x1+0x20x3"; //…
Autoconf不能跑得很快的原因 2018-06-17 7.1K Autoconf不能跑得很快的原因是因為它會為每一個feature去compile一個很小的測試程式去測試那個feature能不能被正確編譯出來,在底層系統的世界,因為歷史原故,我們不能好簡單的判斷在你的dev machine裏有libXXX.1.2.3.so就認為你的代碼能正確地編譯出來,因為好多時library的作者更改了代碼但沒有升級版本號。如果要令你的c/c++程式能誇平台編譯,版本號也是沒有絕對意義,因為同一個版本的library在linux和在unix上有着實質的不同。最誇張的例子就是有些庫在linux上是存在,但在unix上是不存在,所以autoconf要為每一次編譯去逐個測試,所以實在快不來,這一點和java/nodejs世界的build system有非常大的不同。
I think there is a bug in Intel Manual 2018-05-27 3.8K In the intel manual "Intel® 64 and IA-32 Architectures Software Developer’s Manual Volume 2 (2A, 2B, 2C & 2D): Instruction…
What is ISA (Instruction set architecture) ? 2018-05-22 3.7K From the book Embedded Computing, it has a ISA chapter, below is the summary of "what is ISA" ISA helps…
The definition of a toolchain 2018-05-21 3.4K This book from Shatin Library has a definition of toolchain. A toolchain should contains: Compiler Assembler Libraries Linker Post-link optimizer…
Assembler嘅HLA邊界 2018-05-17 6.9K 寫Assembly用到Marco就試過N次,之前都係用到點就學到邊,無了解過佢嘅邊界,而家差唔多去到要為自己嘅assembler研發marco,所以要先睇下HLA嘅Marco大約可以做到啲乜。沙田圖書館係有唔少好書。 書中講左句: 啲人係用Assembler嘅Marco有幾勁黎判斷個assembler有幾勁,無錯,啲人確實係甘諗。以下就係關於assembler功能上嘅總結: Compile Time Operators. (E.g. : +-*/, <<, >> =, <>) Operator Precedence and Associativity (E.g. : !,…
Test cases in antlr grammar file 2018-02-24 3.9K I am developing an Assembler, i think the best way is to embed the test case into the grammer, all…
a super skill to help you understand .init and .fini 2016-06-03 3K a super skill to help you understand .init and .fini, just do "LD_DEBUG=libs ./a.out", read detail http://www.bnikolic.co.uk/blog/linux-ld-debug.html One thing need…
discovered something about .init and .fini sections 2016-06-02 4.1K discovered something about .init and .fini sections, if you compile your source file into .o, no .init and .fini sections…
i guess this is the reason i die in exception #0 2016-05-25 3K I die in “divide by zero” exception, when i back trace, it was the destructor of class Vector, i guess…
finally able to print out the fault address in exception 0 handler 2016-05-25 3.4K finally able to print out the fault address in exception 0 handler, great step tonight
export a function from gnu assembly to c++ 2016-05-22 3.1K export a function from gnu assembly to c++ then you are free to use it in cpp :
In shit again, c++ built-in function got divide by zero exception 2016-05-16 3.4K In shit again, c++ built-in function got divide by zero exception
Linux创始人畅谈开源操作系统 2016-04-28 7K http://www.infoq.com/cn/news/2015/08/LinuxCon2015 Linux创始人林纳斯·托瓦兹(Linus Torvalds)在今年LinuxCon2015会议上的自由提问环节中,向与会者分享了他对开源软件和Linux现状的思考。对开源系统安全性、Linux在物联网中的应用、未来Linux发展蓝图等问题,Torvalds一一做了精彩的回答,eweek、zdnet等媒体都进行了报道。 此次自由提问环节的主持人是Linux基金会的执行董事吉姆·泽姆林(Jim Zemlin)。 像福特一样改造生产力的伟人 主持人Zemlin引用了近期一篇介绍Torvalds的文章作为问答交流环节的开场。Linux操作系统广泛用于现代社会的方方面面,上至卫星火箭,下至成百上千的谷歌服务器。Torvalds作为Linux操作系统的创始人,被认为是继一百年前发明流水线的汽车大王福特以后,再一次通过改进生产工具创造了极大经济效益的影响力人物。Torvalds回应说,自己并没有那样伟大,不过确实很高兴因为开源系统而获得了这些赞誉。可以说,Torvalds在技术上的影响力超过了比尔·盖茨、史蒂夫·乔布斯以及拉里·埃里森,然而Torvalds始终保持谦逊,也可能正是因为这样,他作为Linux领导者的地位始终无法动摇。 缺陷始终存在但并非不安全 接下来Zemlin提了一个关于Linux系统安全性的问题,这个问题自去年开源系统遭遇Heartbleed和Shellshock等漏洞以来备受公众关注。Torvalds解释说,安全共同体常常把问题绝对化,非黑即白。然而在他看来,安全问题只是程序缺陷,基本上都是十分低级的错误。只有当少数极端聪明的人想到利用这些漏洞时,才会造成危害。而在大多数情况下,通常没有人会打这些错误的主意。他强调道,任何软件都不可能彻底没有缺陷。由于有程序缺陷的存在,Linux系统的安全性不可能十全十美。Torvalds同时强调,开源社区对于Linux内核十分谨慎,在加入代码时有着一套严格的标准。只有承认程序缺陷不可避免,才能真正解决安全性问题。唯一的解决方法是多层化,当在某一层发现漏洞后,则在下一层进行修补。无懈可击的系统是不切实际的,问题总是存在,所要做的就是不断完善。 当被问到2015年LinuxCon的热门话题Docker容器时,Torvalds并没有表示出太大的兴趣。他解释说,Linux内核与这些热门的概念没什么关系,作为基础架构者,他只关心人们如何使用内核。 更小、更精致?可能真没办法 目前物联网(IoT)正在蓬勃兴起,作为硬件基础的嵌入式系统大多使用的是Linux操作系统。Torvalds认为,Linux在物联网设备上的瓶颈是其大小不断增长的内核。虽然尝试过开发小而精的物联网设备内核,但是始终难以摆脱不必要的冗余。实际上,Linux内核无法达到像20年前一样的简约规模,但也可以一定程度上地简化缩小。不过Torvalds依然遗憾地告诉大家,如果想要设计出真正精致小巧的设备,只能寻找其他解决方案。 比起未来,更关注现在 最后主持人问到未来十年Linux的前景和计划,Torvalds回答说,他并不会去设想那样遥远的未来。Torvalds自认为是一个“蹒跚的行者”,只会考虑未来六个月的事情。关注于当前的版本发布以及下一版的发布才是理智之举,安排十年后的计划显得十分荒谬。即使让他返回到十年之前,他也没有办法预想今日Linux的成绩。不过,虽然他本人不关注未来十年的发展,但并不是说Linux没有关于未来的愿景。使用开源系统的公司会为未来十年进行规划,它们有着明确的需求,因此在推动自己公司计划的同时也会推动Linux发展。所以Torvalds总结道,就算他本人不是前瞻性的领导者,这整个过程也会促使Linux完成前瞻性的行动。
finally made it: installed the resolver address in GOT[2] 2016-02-10 3.1K finally made it: installed the resolver address in GOT[2], now i am able to load up elf binary to memory,…
Description of the first few entries in GOT table 2016-02-06 2.8K Description of the first few entries in GOT table GOT[0] : The table’ s entry zero is reserved to hold the…
My kernel crashed after changed from c to c++ 2016-01-10 4.2K My kernel crashed after changed from c to c++, for this bug, a variable value accidentally changed its value, i…
Running peter-dwarf tutorial 2016-01-03 3.1K This is the tutorial for running testing program for peter-dwarf, there are two programs inside the jar, first one is…
dwarf is too much for c++ 2016-01-02 3.4K One side effect about changing the kernel from c to c++ is that: in the kernel file, the number of…
bug that super hard to fix, but i fixed it 2015-12-16 2.9K !!! Nobody can read the dwarf specification and write the dwarf parser without hacking the binutils lab. Dwarf is just…
peter-dwarf has bug to decode c++ dwarf file 2015-12-15 3.4K peter-dwarf has bug to decode c++ dwarf file
Is it a bochs bug? bochs forgets to translate linear addr to physical addr? 2015-11-30 5.5K Is it a bochs bug? bochs forgets to translate linear addr to physical addr?
describe how to exact bytes from memory 2015-11-27 3K my colleague suggested me to use this method to describe how to exact bytes from memory: using pairs of 2-numbers.…
Fixed one important bug in grub 2015-11-14 4.1K I am doing kernel development in mac, my kernel is loaded up by grub because it relay on multiboot spec.…