Posts

Function call and stacks for Calling Conventions

Image
When a function is called arguments are passed to the called function by different means, like stacks ,registers. Similarly return is either done by stack or register, According to function calling conventions the compiler design the assembly code from c/cpp codes to pass arguments to called function. It also specify the stack handling of the portion used by the function. In x86 stack normally grow downward. EBP keeps track of the base of the frame(frame pointer),and ESP keeps track of the top of the stack.EAX have the return value. In PPC stack pointer is r1,Base pointer is r0,r3 is the return register. As I blogged before on PPC register classification . (from wikipedia) The C function Calling convention define following things Order in which arguments are pushed on the stack. Who is responsible for stack clean-up process either callee or caller function after call complete. Name decorating for individual function before linking. Available call c...

Recent Liking

Image
Lately hearing RD barman and kishore's Songs. Seem like I becoming romantic .Though I like Mehdi Hassan and Gullam Ali also. The Guy Khurram Imtiaz has uploaded most of the best videos of kishore ,nushrat, ghulam ali etc check his playlists. http://www.youtube.com/user/KhurramDBG#g/p

Curiosity Mars Rover,monster truck for mars

Image
CAPE CANAVERAL, 27 NOV: Nasa's Curiosity rover, the biggest, most sophisticated robotic explorer ever built, blasted off on a journey to Mars, where it will hunt for signs that life once existed there.  Curiosity, which is the size of a large car and weighs in at one ton, has a laser beam for zapping interesting rocks and a tool kit for analysing their contents. It carries a robotic arm, a drill, and a set of 10 science instruments including two color video cameras. Sensors will enable it to report back on the Martian weather and the levels of radiation in the atmosphere ~ important data for Nasa as it devises future human exploration missions. Known formally as the Mars Science Laboratory (MSL), the spacecraft launched at 10.02 a.m. (1502 GMT) atop an Atlas V rocket to begin its nearly nine-month trip to the Red Planet. It has power house made from plutonium decaying. Specification and features: SIZE : 10 ft (3.0 m) in length, and weighs 1,...

Difference between Declaration and Defination

In general definition is where the variable or function is whereas code tell the compiler to allocate some memo ry and initial values goes to it,whereas declaration is the place where we define its name,type, return type to compiler etc. For Functions: //declaration   int foo(char a,int ); //definition  int foo(int a , int b)  { ..... } For automatic and register  variable definition & declaration are same bcoz they allocate memory  whenever defined. For external  storage class variables they are different. Global variables are defined in another file.Symols are resolved in time of  object linking. Externals can be declared and defined outside a function without any storage class(?).They can be declared using the"extern" keyword [e.g. extern int a;] e.g f1.c int var_name ;  //declaration only for global and static (Only initialized in BSS but no memory storage) int var2_name ; //de int var3_name = 22 ; //declaration ...

Intel Platform Codenames

After frustrated by the lots of codename while working with intel processor based SBC I made the list of recent processors and platforms.

Poetry - When I see my baby What do I see - by Johnny Tillostson

Poetry in motion walking by my side Her lovely locomotion Keeps my eyes open wide Poetry in motion see her gentle swaying A wave out on the ocean Could never move that way I love every movement There's nothing I would change She doesn't need improvement She's much too nice to rearrange Poetry in motion dancing close to me A flower of devotion a-swaying gracefully Woh-woh-woh-woh-woh-woh Woh-woh-woh-woh-woh..... Poetry in motion see her gentle swaying A wave out on the ocean Could never move that way I love every movement There's nothing I would change She doesn't need improvement She's much too nice to rearrange Poetry in motion all that I adore her No number nine love potion Could make me love her more Woh-woh-woh-woh-woh-woh Woh-woh-woh-woh-woh.....

Bengali to english tools

বেঙ্গলি ভাষা tools http://bengali.changathi.com/ http://dsal.uchicago.edu/dictionaries/biswas-bengali/ অভিধানhttp://dictionary.evergreenbangla.com/ is bengali avidhan Somewhat good http://translate.google.com/?hl=en