C
#include<stdio.h>
#include<string.h>
int main()
{
char str1[5]="Hello",str2[]=" World!";
strcat(str1,str2);
puts(str1);
return 0;
}
Size of .s
(assembler file) is 1K
Rust
fn main() {
let str1 = "Hello".to_string();
let str2 = " World!".to_string();
println!("{}", str1 + &str2);
}
Size of .s
is 107K
Both compiled on Linux x86-64 platform.