I am trying to compile the MbedTls for a 16 bit processor., actually, some parts like ASN1 and ECDSE. The compilation goes through but, I noticed that the code makes use of size_t profusely and it looks like it operates under the assumption that it is always a 32 bit unsigned integer. But on my platform, size_t is 16 bits. I can change all instances of size_t to uint32_t and get it working. But I am concerned that it may affect portability or code updates.
This is not a bug; but essentially, something that needs attention. Is there a workaround?