dirver.cpp multi-architecture compatibitlity