Use __get_cpuid() function to execute cpuid leaf0 and extract the vendor id.
#include cpuid.h for gcc will make __get_cpuid() function visible.
Extract the ascii bytes for the 12 byte vendor id and display in human readable form.
source code:
https://github.com/vishmohan/inline_assembly_examples/tree/master/cpuid_leaf0