Tuesday, August 23, 2011

GCC Function Attributes

You can find the set of gcc function attribute options at [1]. If you are a smart C/C++ developer, you should always be concerned about these options.

[1] - http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html

Tuesday, August 2, 2011

Atomic operations in C/C++

The atomic operations provided by GCC [1] come in quite handy even though they are limited to a few data types and in fact Intel-specific. AFAIK SPARC has it's own set of variants.

[1] http://gcc.gnu.org/onlinedocs/gcc-4.4.0/gcc/Atomic-Builtins.html#Atomic-Builtins

Monday, August 1, 2011

SSH/SCP without entering password

It is quite cumbersome if you are to re-enter password each time you invoke scp/ssh. Especially when you have a build system managing hundreds of binaries and scp deploying each of them to a remote run environment.

I found [1] quite useful in that regard.

[1] - http://www.thegeekstuff.com/2008/06/perform-ssh-and-scp-without-entering-password-on-openssh/comment-page-1/#comment-119367