File under: compilers, development, C, crtrm, SIMD

blog / Compilers make me :(

C needs to tighten up its syntax

mapset *ent_create_mapset() {
	mapset * mset;
	
	mset = ent_calloc(1, sizeof(mapset));
	mset->map = ent_calloc(9000, sizeof(int *));
	mset->max_index=8999;
	mset->last_index=-1;
	mset->map_bytes = (mset->max_index+1)*sizeof(int*);	
	printf("created mset at %d\n", mset);
	return mset;
}

void ent_set_allmaps(mapset * mset) {
	allmaps.map-mset->map;
	allmaps.max_index=mset->max_index;
	allmaps.last_index=mset->last_index;
	allmaps.map_bytes=mset->map_bytes;
}

'-' and the '=' are on the same physical key. If I miss shift and don't notice, then I type a '-' instead of a '='. And the C complier doesn't care. And then my program segfaults in a completely different file.

On the upside, that was the last (self inflicted) bug I had to fix to get Entirety working on 64 bit machines. This is the program I wrote 13 years ago,when 64 bit machines were extremely expensive and only used at research institutions and large companies. And it took less than a day to convert to 64bit.

Installing MinGW/MSYS took 2 days, unfortunately :(