fads://

Archive for May 2011

Create a boot option for easy nvidia or nouveau display driver switching (via Gentoo itself is power)

leave a comment »

Все те кто сталкиваются с проблемой выбора между модулем nvidia или nouveau знают достоинства и недостатки каждого из них. Итак если вы хотите совместить достоинства обоих модулей – вам под кат. Сразу стоит предупредить увы одноврмеменно, на данном этапе, nvidia и nouveau неуживаются. Поэтому выход один. Предполагается что у вас уже стоит и настроен nvidia либо nouveau. Во первых в переменную VIDEO_CARDS файла /etc/make.conf добавляем [sourcecode … Read More

via Gentoo itself is power

Written by Amir Aupov

30.05.2011 at 00:46

Posted in linux

assembler docs

with one comment

Written by Amir Aupov

29.05.2011 at 18:25

Posted in linux, Programming

Tagged with ,

simple assembler program (at&t syntax)

leave a comment »

Задание по информатике для первокурсников, обработка символьных строк.
Read the rest of this entry »

Written by Amir Aupov

29.05.2011 at 17:29

Posted in Programming

Tagged with , ,

deadbeef compile time

leave a comment »

deadbeef compile (deadbeef-devel from git)

make clean 
./configure CC={clang,icc,gcc} 
time make -j3

clang
real	1m33.959s
user	2m2.320s
sys	0m13.860s

icc
real	2m2.002s
user	2m38.440s
sys	0m17.920s

gcc
real	1m49.759s
user	2m26.280s
sys	0m15.790s

Written by Amir Aupov

12.05.2011 at 00:49

Posted in linux

Tagged with , ,

Calling An Asm Function From C (AT&T syntax)

leave a comment »

Calling functions written in assembly from C is not so difficult, but it is important you understand the C function calling convention. According to this convention parameters are to be pushed onto the stack and return values stored in the eax register. This means that when we call our function from C, the C compiler will push the parameters onto the stack, and our asm program must look there to fetch them. But where exactly on the stack are they … Read More

via Like Dream of Banister Fiend

Written by Amir Aupov

04.05.2011 at 02:21

Posted in Programming