Automatic Generation of Error Control Codes for Computer Applications